Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -147,10 +147,10 @@ with gr.Blocks() as demo_vqascore_ranking:
|
|
147 |
rank_button = gr.Button("Submit")
|
148 |
|
149 |
with gr.Column():
|
150 |
-
example1_button = gr.Button("Load Example 1")
|
151 |
-
example2_button = gr.Button("Load Example 2")
|
152 |
example1_button.click(fn=lambda: load_example("clip-flant5-xxl", example_imgs, example_prompt0), inputs=[], outputs=[model_dropdown, gallery, prompt])
|
153 |
example2_button.click(fn=lambda: load_example("clip-flant5-xxl", example_imgs, example_prompt1), inputs=[], outputs=[model_dropdown, gallery, prompt])
|
|
|
|
|
154 |
|
155 |
ranked_gallery = gr.Gallery(label="Output: Ranked Images with Scores", elem_id="ranked-gallery", columns=4, allow_preview=True)
|
156 |
rank_button.click(fn=rank_images, inputs=[model_dropdown, gallery, prompt], outputs=ranked_gallery)
|
|
|
147 |
rank_button = gr.Button("Submit")
|
148 |
|
149 |
with gr.Column():
|
|
|
|
|
150 |
example1_button.click(fn=lambda: load_example("clip-flant5-xxl", example_imgs, example_prompt0), inputs=[], outputs=[model_dropdown, gallery, prompt])
|
151 |
example2_button.click(fn=lambda: load_example("clip-flant5-xxl", example_imgs, example_prompt1), inputs=[], outputs=[model_dropdown, gallery, prompt])
|
152 |
+
example1_button = gr.Button("Load Example 1")
|
153 |
+
example2_button = gr.Button("Load Example 2")
|
154 |
|
155 |
ranked_gallery = gr.Gallery(label="Output: Ranked Images with Scores", elem_id="ranked-gallery", columns=4, allow_preview=True)
|
156 |
rank_button.click(fn=rank_images, inputs=[model_dropdown, gallery, prompt], outputs=ranked_gallery)
|