zhiqiulin commited on
Commit
64a84c2
·
verified ·
1 Parent(s): 3ee65d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="pil"), 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."
 
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."