Spaces:
Runtime error
Runtime error
Commit
·
b728f0b
1
Parent(s):
a791fbb
zrtgb
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=[
|
| 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=[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)
|