Spaces:
Runtime error
Runtime error
Hannah
commited on
Commit
·
cf6cf71
1
Parent(s):
e3f10bc
another tweak
Browse files
app.py
CHANGED
|
@@ -16,12 +16,10 @@ def get_caption(image, additional_context):
|
|
| 16 |
return result
|
| 17 |
|
| 18 |
with gr.Blocks() as demo:
|
| 19 |
-
with gr.
|
| 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 |
submit_btn = gr.Button("Submit", variant="primary")
|
| 24 |
-
with gr.Row():
|
| 25 |
response = gr.Textbox(label="Answer")
|
| 26 |
|
| 27 |
submit_btn.click(get_caption, [image, additional_context], outputs=response)
|
|
|
|
| 16 |
return result
|
| 17 |
|
| 18 |
with gr.Blocks() as demo:
|
| 19 |
+
with gr.Column():
|
| 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 |
response = gr.Textbox(label="Answer")
|
| 24 |
|
| 25 |
submit_btn.click(get_caption, [image, additional_context], outputs=response)
|