AdrienB134 commited on
Commit
07df2cf
1 Parent(s): cef7a44
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -133,6 +133,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
133
  search_button.click(search, inputs=[query, embeds, imgs, k], outputs=[output_gallery])
134
 
135
  answer_button = gr.Button("Answer", variant="primary")
 
136
 
137
  if __name__ == "__main__":
138
  demo.queue(max_size=10).launch(debug=True)
 
133
  search_button.click(search, inputs=[query, embeds, imgs, k], outputs=[output_gallery])
134
 
135
  answer_button = gr.Button("Answer", variant="primary")
136
+ answer_button.click(answer, inputs=[])
137
 
138
  if __name__ == "__main__":
139
  demo.queue(max_size=10).launch(debug=True)
requirements.txt CHANGED
@@ -1,4 +1,3 @@
1
- huggingface_hub
2
  colpali-engine==0.2.0
3
  pdf2image
4
  GPUtil
 
 
1
  colpali-engine==0.2.0
2
  pdf2image
3
  GPUtil