Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,8 @@ def rank_images(model_name, images, text):
|
|
45 |
if model_name != cur_model_name:
|
46 |
cur_model_name = model_name # Update the current model name
|
47 |
model_pipe = update_model(model_name)
|
48 |
-
|
|
|
49 |
print("Images:", images) # Debug: Print image paths
|
50 |
print("Text:", text) # Debug: Print text input
|
51 |
print("Using model:", model_name)
|
@@ -93,4 +94,4 @@ tabbed_interface = gr.TabbedInterface([demo_vqascore, demo_vqascore_ranking], ["
|
|
93 |
|
94 |
# Launch the tabbed interface
|
95 |
tabbed_interface.queue()
|
96 |
-
tabbed_interface.launch()
|
|
|
45 |
if model_name != cur_model_name:
|
46 |
cur_model_name = model_name # Update the current model name
|
47 |
model_pipe = update_model(model_name)
|
48 |
+
|
49 |
+
images = [image_tuple[0] for image_tuple in images]
|
50 |
print("Images:", images) # Debug: Print image paths
|
51 |
print("Text:", text) # Debug: Print text input
|
52 |
print("Using model:", model_name)
|
|
|
94 |
|
95 |
# Launch the tabbed interface
|
96 |
tabbed_interface.queue()
|
97 |
+
tabbed_interface.launch(share=False)
|