Update app.py
Browse files
app.py
CHANGED
@@ -180,24 +180,24 @@ with gr.Blocks() as demo:
|
|
180 |
image_url = gr.Textbox(label="Enter Image URL")
|
181 |
image_query = gr.Textbox(label="Ask about the Image")
|
182 |
image_url_output = gr.Textbox(label="Response", interactive=False)
|
183 |
-
image_url_button = gr.Button("Ask")
|
184 |
|
185 |
with gr.Tab("Text Chat"):
|
186 |
text_query = gr.Textbox(label="Enter your query")
|
187 |
text_output = gr.Textbox(label="Response", interactive=False)
|
188 |
-
text_button = gr.Button("Ask")
|
189 |
|
190 |
with gr.Tab("Image Chat"):
|
191 |
image_upload = gr.File(label="Upload an Image", type="filepath")
|
192 |
image_text_query = gr.Textbox(label="Ask about the uploaded image")
|
193 |
image_output = gr.Textbox(label="Response", interactive=False)
|
194 |
-
image_button = gr.Button("Ask")
|
195 |
|
196 |
with gr.Tab("PDF Chat"):
|
197 |
pdf_upload = gr.File(label="Upload a PDF", type="filepath")
|
198 |
pdf_text_query = gr.Textbox(label="Ask about the uploaded PDF")
|
199 |
pdf_output = gr.Textbox(label="Response", interactive=False)
|
200 |
-
pdf_button = gr.Button("Ask")
|
201 |
|
202 |
with gr.Tab("Voice Chat"):
|
203 |
audio_upload = gr.File(label="Upload an Audio File", type="binary")
|
|
|
180 |
image_url = gr.Textbox(label="Enter Image URL")
|
181 |
image_query = gr.Textbox(label="Ask about the Image")
|
182 |
image_url_output = gr.Textbox(label="Response", interactive=False)
|
183 |
+
image_url_button = gr.Button("Ask",elem_id="ask_button")
|
184 |
|
185 |
with gr.Tab("Text Chat"):
|
186 |
text_query = gr.Textbox(label="Enter your query")
|
187 |
text_output = gr.Textbox(label="Response", interactive=False)
|
188 |
+
text_button = gr.Button("Ask",elem_id="ask_button")
|
189 |
|
190 |
with gr.Tab("Image Chat"):
|
191 |
image_upload = gr.File(label="Upload an Image", type="filepath")
|
192 |
image_text_query = gr.Textbox(label="Ask about the uploaded image")
|
193 |
image_output = gr.Textbox(label="Response", interactive=False)
|
194 |
+
image_button = gr.Button("Ask",elem_id="ask_button")
|
195 |
|
196 |
with gr.Tab("PDF Chat"):
|
197 |
pdf_upload = gr.File(label="Upload a PDF", type="filepath")
|
198 |
pdf_text_query = gr.Textbox(label="Ask about the uploaded PDF")
|
199 |
pdf_output = gr.Textbox(label="Response", interactive=False)
|
200 |
+
pdf_button = gr.Button("Ask",elem_id="ask_button")
|
201 |
|
202 |
with gr.Tab("Voice Chat"):
|
203 |
audio_upload = gr.File(label="Upload an Audio File", type="binary")
|