rdezwart commited on
Commit
adf8326
1 Parent(s): 2f92f19

Change input image type to try and fix numpy bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)