Spaces:
Running
on
Zero
Running
on
Zero
AdrienB134
commited on
Commit
•
dc5eecc
1
Parent(s):
a95df8d
vzefv
Browse files
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=[
|
236 |
|
237 |
answer_button = gr.Button("Answer", variant="primary")
|
238 |
output = gr.Textbox(label="Output")
|
239 |
-
answer_button.click(model_inference, inputs=[
|
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)
|