Spaces:
Runtime error
Runtime error
Hannah
commited on
Commit
·
ac448a1
1
Parent(s):
992501a
move submit btn
Browse files
app.py
CHANGED
|
@@ -19,9 +19,9 @@ with gr.Blocks() as demo:
|
|
| 19 |
with gr.Row():
|
| 20 |
image = gr.Image(sources=["upload", "clipboard"], type="filepath", height=300)
|
| 21 |
additional_context = gr.Textbox(interactive=True, label="Add additional context here (optional)")
|
|
|
|
| 22 |
with gr.Row():
|
| 23 |
response = gr.Textbox(label="Answer")
|
| 24 |
-
submit_btn = gr.Button("Submit", variant="primary")
|
| 25 |
|
| 26 |
submit_btn.click(get_caption, [image, additional_context], outputs=response)
|
| 27 |
|
|
|
|
| 19 |
with gr.Row():
|
| 20 |
image = gr.Image(sources=["upload", "clipboard"], type="filepath", height=300)
|
| 21 |
additional_context = gr.Textbox(interactive=True, label="Add additional context here (optional)")
|
| 22 |
+
submit_btn = gr.Button("Submit", variant="primary")
|
| 23 |
with gr.Row():
|
| 24 |
response = gr.Textbox(label="Answer")
|
|
|
|
| 25 |
|
| 26 |
submit_btn.click(get_caption, [image, additional_context], outputs=response)
|
| 27 |
|