Spaces:
Build error
Build error
Commit
·
11349bd
1
Parent(s):
be487a3
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def process_images_and_statements(image_file):
|
|
95 |
return generated_caption, matched_statements
|
96 |
|
97 |
# Define Gradio interface
|
98 |
-
image_input = gr.inputs.Image(type="
|
99 |
text_input = gr.inputs.Textbox(lines=5, label="Enter Statements (one per line)")
|
100 |
outputs = [
|
101 |
gr.outputs.Textbox(label="Generated Caption"),
|
|
|
95 |
return generated_caption, matched_statements
|
96 |
|
97 |
# Define Gradio interface
|
98 |
+
image_input = gr.inputs.Image(type="numpy", label="Upload Image")
|
99 |
text_input = gr.inputs.Textbox(lines=5, label="Enter Statements (one per line)")
|
100 |
outputs = [
|
101 |
gr.outputs.Textbox(label="Generated Caption"),
|