Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -82,8 +82,8 @@ demo_vqascore = gr.Interface(
|
|
82 |
gr.Textbox(label="Prompt")
|
83 |
], # define the types of inputs
|
84 |
examples=[
|
85 |
-
["clip-flant5-
|
86 |
-
["clip-flant5-
|
87 |
],
|
88 |
outputs="number", # define the type of output
|
89 |
title="VQAScore", # title of the app
|
@@ -100,7 +100,7 @@ demo_vqascore_ranking = gr.Interface(
|
|
100 |
], # define the types of inputs
|
101 |
outputs=gr.Gallery(label="Ranked Images"), # define the type of output
|
102 |
examples=[
|
103 |
-
["clip-flant5-
|
104 |
],
|
105 |
title="VQAScore Ranking", # title of the app
|
106 |
description="This model ranks a gallery of images based on their similarity to a text prompt.",
|
|
|
82 |
gr.Textbox(label="Prompt")
|
83 |
], # define the types of inputs
|
84 |
examples=[
|
85 |
+
["clip-flant5-xl", example_imgs[0], example_prompt0],
|
86 |
+
["clip-flant5-xl", example_imgs[0], example_prompt1],
|
87 |
],
|
88 |
outputs="number", # define the type of output
|
89 |
title="VQAScore", # title of the app
|
|
|
100 |
], # define the types of inputs
|
101 |
outputs=gr.Gallery(label="Ranked Images"), # define the type of output
|
102 |
examples=[
|
103 |
+
["clip-flant5-xl", [example_imgs[0], example_imgs[1], example_imgs[2], example_imgs[3]], example_prompt0],
|
104 |
],
|
105 |
title="VQAScore Ranking", # title of the app
|
106 |
description="This model ranks a gallery of images based on their similarity to a text prompt.",
|