AdrienB134 commited on
Commit
dc5eecc
1 Parent(s): a95df8d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -232,11 +232,11 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
232
  output_gallery = gr.Gallery(label="Retrieved Documents", height=600, show_label=True)
233
 
234
  convert_button.click(index, inputs=[file, embeds], outputs=[message, embeds, imgs])
235
- search_button.click(search, inputs=[query, embeds, imgs, k], outputs=[img_chunk])
236
 
237
  answer_button = gr.Button("Answer", variant="primary")
238
  output = gr.Textbox(label="Output")
239
- answer_button.click(model_inference, inputs=[img_chunk, query], outputs=output)
240
 
241
  if __name__ == "__main__":
242
  demo.queue(max_size=10).launch(debug=True)
 
232
  output_gallery = gr.Gallery(label="Retrieved Documents", height=600, show_label=True)
233
 
234
  convert_button.click(index, inputs=[file, embeds], outputs=[message, embeds, imgs])
235
+ search_button.click(search, inputs=[query, embeds, imgs, k], outputs=[output_gallery])
236
 
237
  answer_button = gr.Button("Answer", variant="primary")
238
  output = gr.Textbox(label="Output")
239
+ answer_button.click(model_inference, inputs=[output_gallery, query], outputs=output)
240
 
241
  if __name__ == "__main__":
242
  demo.queue(max_size=10).launch(debug=True)