Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -53,9 +53,9 @@ with gr.Blocks() as demo:
|
|
53 |
gr.Markdown("## π moondream2\nA tiny vision language model. [GitHub](https://github.com/vikhyatk/moondream)")
|
54 |
with gr.Row():
|
55 |
img = gr.Gallery(label="Upload Images", type="pil")
|
56 |
-
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=
|
57 |
submit = gr.Button("Submit")
|
58 |
-
output = gr.TextArea(label="Responses", lines=
|
59 |
submit.click(answer_questions, [img, prompt], output)
|
60 |
|
61 |
demo.queue().launch()
|
|
|
53 |
gr.Markdown("## π moondream2\nA tiny vision language model. [GitHub](https://github.com/vikhyatk/moondream)")
|
54 |
with gr.Row():
|
55 |
img = gr.Gallery(label="Upload Images", type="pil")
|
56 |
+
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)
|
57 |
submit = gr.Button("Submit")
|
58 |
+
output = gr.TextArea(label="Responses", lines=8)
|
59 |
submit.click(answer_questions, [img, prompt], output)
|
60 |
|
61 |
demo.queue().launch()
|