Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,10 +18,10 @@ if __name__ == "__main__":
|
|
18 |
embedding_instructions = """
|
19 |
**Select How to Match Results**
|
20 |
Pick the type of comparison you'd like:
|
21 |
-
- **Text-based**: Find items based on the
|
22 |
-
- **Image-based**: Find items
|
23 |
- **Both (Balanced)**: Search using a combination of both text and image. This balances between the two equally.
|
24 |
-
- **Both (Image-focused)**: Emphasize the image more than the text in the search for closer
|
25 |
"""
|
26 |
gr.Markdown(search_instructions)
|
27 |
with gr.Column():
|
@@ -53,13 +53,13 @@ if __name__ == "__main__":
|
|
53 |
with gr.Column():
|
54 |
gr.Markdown("#### FashionCLIP Results")
|
55 |
# Set the gallery to display 4 images per row (scrollable)
|
56 |
-
fclip_output_images = gr.Gallery(label="FashionCLIP Images", columns=
|
57 |
fclip_output_results = gr.Dataframe(label="FashionCLIP Search Results")
|
58 |
|
59 |
with gr.Column():
|
60 |
gr.Markdown("#### FashionSigLip Results")
|
61 |
# Set the gallery to display 4 images per row (scrollable)
|
62 |
-
siglip_output_images = gr.Gallery(label="FashionSigLIP Images", columns=
|
63 |
siglip_output_results = gr.Dataframe(label="FashionSigLIP Search Results")
|
64 |
|
65 |
# Update input fields based on query type
|
@@ -88,4 +88,4 @@ if __name__ == "__main__":
|
|
88 |
)
|
89 |
|
90 |
# Launch the Gradio app
|
91 |
-
demo.launch(
|
|
|
18 |
embedding_instructions = """
|
19 |
**Select How to Match Results**
|
20 |
Pick the type of comparison you'd like:
|
21 |
+
- **Text-based**: Find items based on the descriptions provided to the model.
|
22 |
+
- **Image-based**: Find items based on the images provided to the model.
|
23 |
- **Both (Balanced)**: Search using a combination of both text and image. This balances between the two equally.
|
24 |
+
- **Both (Image-focused)**: Emphasize the image more than the text in the search for closer matches.
|
25 |
"""
|
26 |
gr.Markdown(search_instructions)
|
27 |
with gr.Column():
|
|
|
53 |
with gr.Column():
|
54 |
gr.Markdown("#### FashionCLIP Results")
|
55 |
# Set the gallery to display 4 images per row (scrollable)
|
56 |
+
fclip_output_images = gr.Gallery(label="FashionCLIP Images", columns=2)
|
57 |
fclip_output_results = gr.Dataframe(label="FashionCLIP Search Results")
|
58 |
|
59 |
with gr.Column():
|
60 |
gr.Markdown("#### FashionSigLip Results")
|
61 |
# Set the gallery to display 4 images per row (scrollable)
|
62 |
+
siglip_output_images = gr.Gallery(label="FashionSigLIP Images", columns=2)
|
63 |
siglip_output_results = gr.Dataframe(label="FashionSigLIP Search Results")
|
64 |
|
65 |
# Update input fields based on query type
|
|
|
88 |
)
|
89 |
|
90 |
# Launch the Gradio app
|
91 |
+
demo.launch()
|