rfmantoan commited on
Commit
70f4a27
1 Parent(s): 4105586

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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 description you provided.
22
- - **Image-based**: Find items similar to the image you uploaded.
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 visual matches.
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=3)
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=3)
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(share=True)
 
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()