AdrienB134 commited on
Commit
2503cab
1 Parent(s): aeb1e2d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,11 +211,11 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
211
  output_gallery = gr.Gallery(label="Retrieved Documents", height=600, show_label=True)
212
 
213
  convert_button.click(index, inputs=[file, embeds], outputs=[message, embeds, imgs])
214
- search_button.click(search, inputs=[query, embeds, imgs, k], outputs=[output_gallery, img_chunk])
215
 
216
  answer_button = gr.Button("Answer", variant="primary")
217
  output = gr.Textbox(label="Output")
218
- answer_button.click(model_inference, inputs=[img_chunk, query], outputs=output)
219
 
220
  if __name__ == "__main__":
221
  demo.queue(max_size=10).launch(debug=True)
 
211
  output_gallery = gr.Gallery(label="Retrieved Documents", height=600, show_label=True)
212
 
213
  convert_button.click(index, inputs=[file, embeds], outputs=[message, embeds, imgs])
214
+ search_button.click(search, inputs=[query, embeds, imgs, k], outputs=[output_gallery])
215
 
216
  answer_button = gr.Button("Answer", variant="primary")
217
  output = gr.Textbox(label="Output")
218
+ answer_button.click(model_inference, inputs=[output_gallery, query], outputs=output)
219
 
220
  if __name__ == "__main__":
221
  demo.queue(max_size=10).launch(debug=True)