Spaces:
Runtime error
Runtime error
Commit
·
e1bf7e0
1
Parent(s):
12cb11e
Update app.py
Browse files
app.py
CHANGED
@@ -63,8 +63,8 @@ def process_images_and_statements(image):
|
|
63 |
output = "Image Captions:\n" + captions + "\n\nITM Scores:\n" + itm_scores
|
64 |
return output
|
65 |
|
66 |
-
# Gradio interface
|
67 |
image_input = gr.inputs.Image()
|
68 |
output = gr.outputs.Textbox(label="Results")
|
69 |
|
70 |
-
iface = gr.Interface(fn=process_images_and_statements, inputs=image_input, outputs=output, title="
|
|
|
|
63 |
output = "Image Captions:\n" + captions + "\n\nITM Scores:\n" + itm_scores
|
64 |
return output
|
65 |
|
|
|
66 |
image_input = gr.inputs.Image()
|
67 |
output = gr.outputs.Textbox(label="Results")
|
68 |
|
69 |
+
iface = gr.Interface(fn=process_images_and_statements, inputs=image_input, outputs=output, title="Image Captioning and Image-Text Matching")
|
70 |
+
iface.launch()
|