Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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='
|
94 |
|
95 |
# Upload button for image files
|
96 |
-
up = gr.UploadButton("
|
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])
|