Spaces:
Running
Running
Change input image type to try and fix numpy bug
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ with gr.Blocks() as app:
|
|
27 |
prompt = gr.Textbox(label="Input", value="Describe this image.")
|
28 |
submit = gr.Button("Submit")
|
29 |
with gr.Row():
|
30 |
-
img = gr.Image(label="Image")
|
31 |
output = gr.TextArea(label="Output")
|
32 |
|
33 |
submit.click(answer_question, [img, prompt], output)
|
|
|
27 |
prompt = gr.Textbox(label="Input", value="Describe this image.")
|
28 |
submit = gr.Button("Submit")
|
29 |
with gr.Row():
|
30 |
+
img = gr.Image(label="Image", type="pil")
|
31 |
output = gr.TextArea(label="Output")
|
32 |
|
33 |
submit.click(answer_question, [img, prompt], output)
|