ManishThota commited on
Commit
515ab2f
·
verified ·
1 Parent(s): e2782e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -30,8 +30,9 @@ def gradio_predict(image, question):
30
  # Define the Gradio interface
31
  iface = gr.Interface(
32
  fn=gradio_predict,
33
- inputs=[gr.inputs.Image(), gr.inputs.Textbox(label="Question")],
34
- outputs=gr.outputs.Textbox(label="Answer"),
 
35
  title="Visual Question Answering",
36
  description="This model answers questions based on the content of an image. Powered by BLIP.",
37
  )
 
30
  # Define the Gradio interface
31
  iface = gr.Interface(
32
  fn=gradio_predict,
33
+ inputs=[gr.Image(type="pil", label="Upload or Drag an Image"), gr.Textbox(label="Question", placeholder="e.g. What is this?", scale=4)],
34
+ outputs=gr.TextArea(label="Answer"),
35
+ submit = gr.Button("Submit",scale=1),
36
  title="Visual Question Answering",
37
  description="This model answers questions based on the content of an image. Powered by BLIP.",
38
  )