Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -452,12 +452,22 @@ with gr.Blocks(css=CSS, theme=gr.themes.Soft(text_size=sizes.text_md)) as demo:
|
|
| 452 |
],
|
| 453 |
[chatbot, references, ret_images],
|
| 454 |
)
|
| 455 |
-
|
| 456 |
msg.submit(
|
| 457 |
conversation,
|
| 458 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 459 |
[chatbot, references, ret_images],
|
| 460 |
)
|
|
|
|
| 461 |
documents.change(lambda: "<h1 style='text-align: center'>Click the 'Extract' button to extract data from PDFs<h1>", None, prog)
|
| 462 |
|
| 463 |
back_p1.click(lambda: gr.Tabs(selected=0), None, tabs)
|
|
|
|
| 452 |
],
|
| 453 |
[chatbot, references, ret_images],
|
| 454 |
)
|
|
|
|
| 455 |
msg.submit(
|
| 456 |
conversation,
|
| 457 |
+
[
|
| 458 |
+
vectordb,
|
| 459 |
+
msg,
|
| 460 |
+
num_context,
|
| 461 |
+
img_context,
|
| 462 |
+
chatbot,
|
| 463 |
+
temp,
|
| 464 |
+
max_tokens,
|
| 465 |
+
hf_token,
|
| 466 |
+
model_path,
|
| 467 |
+
],
|
| 468 |
[chatbot, references, ret_images],
|
| 469 |
)
|
| 470 |
+
|
| 471 |
documents.change(lambda: "<h1 style='text-align: center'>Click the 'Extract' button to extract data from PDFs<h1>", None, prog)
|
| 472 |
|
| 473 |
back_p1.click(lambda: gr.Tabs(selected=0), None, tabs)
|