Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def generate(image, text):
|
|
| 28 |
iface = gr.Interface(
|
| 29 |
fn=generate, # function to call
|
| 30 |
# inputs=[gr.Dropdown(["clip-flant5-xl", "clip-flant5-xxl"], label="Model Name"), gr.Image(type="pil"), gr.Textbox(label="Prompt")], # define the types of inputs
|
| 31 |
-
inputs=[gr.Image(type="
|
| 32 |
outputs="number", # define the type of output
|
| 33 |
title="VQAScore", # title of the app
|
| 34 |
description="This model evaluates the similarity between an image and a text prompt."
|
|
|
|
| 28 |
iface = gr.Interface(
|
| 29 |
fn=generate, # function to call
|
| 30 |
# inputs=[gr.Dropdown(["clip-flant5-xl", "clip-flant5-xxl"], label="Model Name"), gr.Image(type="pil"), gr.Textbox(label="Prompt")], # define the types of inputs
|
| 31 |
+
inputs=[gr.Image(type="filepath"), gr.Textbox(label="Prompt")], # define the types of inputs
|
| 32 |
outputs="number", # define the type of output
|
| 33 |
title="VQAScore", # title of the app
|
| 34 |
description="This model evaluates the similarity between an image and a text prompt."
|