nkanungo commited on
Commit
28aca00
·
1 Parent(s): 2fd3376

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -98,12 +98,15 @@ def find_best_matches(image, mode, text):
98
 
99
 
100
  gr.Interface(fn=find_best_matches,
101
- inputs=[
102
  gr.Image(label="Image to search"),
103
  gr.Radio([T2I, I2I]),
104
  gr.Textbox(lines=1, label="Text query", placeholder="Introduce the search text...",
105
  )],
106
  theme="grass",
107
- outputs=[gr.Gallery(label="Generated images", show_label=False, elem_id="gallery")], enable_queue=True, title="CLIP Image Search",
108
- description="This application displays TOP THREE images from Unsplash dataset that best match the search query provided by the user. Moreover, the input can be provided via two modes ie text or image form.").launch()
 
 
 
109
 
 
98
 
99
 
100
  gr.Interface(fn=find_best_matches,
101
+ inputs=[
102
  gr.Image(label="Image to search"),
103
  gr.Radio([T2I, I2I]),
104
  gr.Textbox(lines=1, label="Text query", placeholder="Introduce the search text...",
105
  )],
106
  theme="grass",
107
+ outputs=[gr.Gallery(label="Generated images", show_label=False, elem_id="gallery")],
108
+ enable_queue=True,
109
+ title="CLIP Image Search",
110
+ description="This application displays TOP THREE images from Unsplash dataset that best match the search query provided by the user. Moreover, the input can be provided via two modes ie text or image form."
111
+ ).launch()
112