Spaces:
Paused
Paused
Update app.py
Browse files
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.
|
34 |
-
outputs=gr.
|
|
|
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 |
)
|