Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def load_example(model_name, images, prompt):
|
|
116 |
# Create the second demo
|
117 |
with gr.Blocks() as demo_vqascore_ranking:
|
118 |
gr.Markdown("# VQAScore Ranking\nThis model ranks a gallery of images based on their similarity to a text prompt.")
|
119 |
-
model_dropdown = gr.Dropdown(["clip-flant5-xxl", "clip-flant5-xl"], value=
|
120 |
gallery = gr.Gallery(label="Generated Images", elem_id="input-gallery", columns=4, allow_preview=True)
|
121 |
prompt = gr.Textbox(label="Prompt")
|
122 |
rank_button = gr.Button("Rank Images")
|
|
|
116 |
# Create the second demo
|
117 |
with gr.Blocks() as demo_vqascore_ranking:
|
118 |
gr.Markdown("# VQAScore Ranking\nThis model ranks a gallery of images based on their similarity to a text prompt.")
|
119 |
+
model_dropdown = gr.Dropdown(["clip-flant5-xxl", "clip-flant5-xl"], value="clip-flant5-xxl", label="Model Name")
|
120 |
gallery = gr.Gallery(label="Generated Images", elem_id="input-gallery", columns=4, allow_preview=True)
|
121 |
prompt = gr.Textbox(label="Prompt")
|
122 |
rank_button = gr.Button("Rank Images")
|