haydenk commited on
Commit
91766e6
·
verified ·
1 Parent(s): 3b2a6bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -82,18 +82,18 @@ def gemini(input, file, chatbot=[]):
82
 
83
  # Define the Gradio Blocks interface
84
  with gr.Blocks() as demo:
85
- # Add a centered header using HTML
86
- gr.HTML("<center><h1>Gemini-PRO & Gemini-PRO-Vision API</h1></center>")
87
 
88
  # Initialize the MultimodalChatbot component
89
  multi = MultimodalChatbot(value=[], height=800)
90
 
91
  with gr.Row():
92
  # Textbox for user input with increased scale for better visibility
93
- tb = gr.Textbox(scale=4, placeholder='Input text and press Enter')
94
 
95
  # Upload button for image files
96
- up = gr.UploadButton("Upload Image", file_types=["image"], scale=1)
97
 
98
  # Define the behavior on text submission
99
  tb.submit(gemini, [tb, up, multi], [multi, tb, up])
 
82
 
83
  # Define the Gradio Blocks interface
84
  with gr.Blocks() as demo:
85
+ # # Add a centered header using HTML
86
+ # gr.HTML("<center><h1>Gemini-PRO & Gemini-PRO-Vision API</h1></center>")
87
 
88
  # Initialize the MultimodalChatbot component
89
  multi = MultimodalChatbot(value=[], height=800)
90
 
91
  with gr.Row():
92
  # Textbox for user input with increased scale for better visibility
93
+ tb = gr.Textbox(scale=4, placeholder='Message CortexChatV...')
94
 
95
  # Upload button for image files
96
+ up = gr.UploadButton("Attach File", file_types=["image"], scale=1)
97
 
98
  # Define the behavior on text submission
99
  tb.submit(gemini, [tb, up, multi], [multi, tb, up])