Spaces:
Sleeping
Sleeping
AdrienB134
commited on
Commit
•
2503cab
1
Parent(s):
aeb1e2d
gzer
Browse files
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
|
215 |
|
216 |
answer_button = gr.Button("Answer", variant="primary")
|
217 |
output = gr.Textbox(label="Output")
|
218 |
-
answer_button.click(model_inference, inputs=[
|
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)
|