AdrienB134 commited on
Commit
ded88a4
1 Parent(s): 09ba206
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -223,7 +223,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
223
  img_chunk = gr.State(value=[])
224
 
225
  with gr.Column(scale=3):
226
- gr.Markdown("## 2️⃣ Search")
227
  query = gr.Textbox(placeholder="Enter your query here", label="Query")
228
  k = gr.Slider(minimum=1, maximum=10, step=1, label="Number of results", value=5)
229
  search_button = gr.Button("🔍 Search", variant="primary")
@@ -241,6 +241,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
241
  convert_button.click(index, inputs=[file, embeds], outputs=[message, embeds, imgs])
242
  search_button.click(search, inputs=[query, embeds, imgs, k], outputs=[output_gallery])
243
 
 
244
  answer_button = gr.Button("Answer", variant="primary")
245
  output = gr.Markdown(label="Output")
246
  answer_button.click(model_inference, inputs=[output_gallery, query], outputs=output)
 
223
  img_chunk = gr.State(value=[])
224
 
225
  with gr.Column(scale=3):
226
+ gr.Markdown("## 2️⃣ Search with ColPali")
227
  query = gr.Textbox(placeholder="Enter your query here", label="Query")
228
  k = gr.Slider(minimum=1, maximum=10, step=1, label="Number of results", value=5)
229
  search_button = gr.Button("🔍 Search", variant="primary")
 
241
  convert_button.click(index, inputs=[file, embeds], outputs=[message, embeds, imgs])
242
  search_button.click(search, inputs=[query, embeds, imgs, k], outputs=[output_gallery])
243
 
244
+ gr.Markdown("## 3️⃣ Get your answer with Idefics")
245
  answer_button = gr.Button("Answer", variant="primary")
246
  output = gr.Markdown(label="Output")
247
  answer_button.click(model_inference, inputs=[output_gallery, query], outputs=output)