Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -68,9 +68,11 @@ with gr.Blocks() as demo:
|
|
68 |
gr.Markdown("## π moondream2\nA tiny vision language model. [GitHub](https://github.com/vikhyatk/moondream)")
|
69 |
with gr.Row():
|
70 |
img = gr.Gallery(label="Upload Images", type="pil")
|
|
|
71 |
prompt = gr.Textbox(label="Input Prompts", placeholder="Enter prompts (one prompt for each image provided) separated by commas. Ex: Describe this image, What is in this image?", lines=8)
|
|
|
72 |
submit = gr.Button("Submit")
|
73 |
-
output = gr.TextArea(label="Responses", lines=
|
74 |
submit.click(answer_questions, [img, prompt], output)
|
75 |
|
76 |
demo.queue().launch()
|
|
|
68 |
gr.Markdown("## π moondream2\nA tiny vision language model. [GitHub](https://github.com/vikhyatk/moondream)")
|
69 |
with gr.Row():
|
70 |
img = gr.Gallery(label="Upload Images", type="pil")
|
71 |
+
with gr.Row():
|
72 |
prompt = gr.Textbox(label="Input Prompts", placeholder="Enter prompts (one prompt for each image provided) separated by commas. Ex: Describe this image, What is in this image?", lines=8)
|
73 |
+
with gr.Row():
|
74 |
submit = gr.Button("Submit")
|
75 |
+
output = gr.TextArea(label="Responses", lines=30)
|
76 |
submit.click(answer_questions, [img, prompt], output)
|
77 |
|
78 |
demo.queue().launch()
|