Carson commited on
Commit ·
e89d891
1
Parent(s): d3f9643
added file upload section after every file upload success
Browse files
app.py
CHANGED
|
@@ -368,6 +368,9 @@ def create_app() -> gr.Blocks:
|
|
| 368 |
fn=_upload_action,
|
| 369 |
inputs=[file_input],
|
| 370 |
outputs=[upload_status] + INDEX_OUTPUTS,
|
|
|
|
|
|
|
|
|
|
| 371 |
)
|
| 372 |
|
| 373 |
active_doc_dropdown.change(
|
|
|
|
| 368 |
fn=_upload_action,
|
| 369 |
inputs=[file_input],
|
| 370 |
outputs=[upload_status] + INDEX_OUTPUTS,
|
| 371 |
+
).then(
|
| 372 |
+
fn=lambda: gr.update(value=None),
|
| 373 |
+
outputs=[file_input],
|
| 374 |
)
|
| 375 |
|
| 376 |
active_doc_dropdown.change(
|