Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -848,7 +848,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
848 |
text2 = gr.Textbox("Gen embedding")
|
849 |
process_btn = gr.Button("Click to embed")
|
850 |
|
851 |
-
|
852 |
|
853 |
with gr.Tab("Query docs"):
|
854 |
# interactive chat
|
@@ -863,7 +863,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
863 |
ns = deepcopy(ns_initial)
|
864 |
return f"reset done: ns={ns}"
|
865 |
|
866 |
-
|
867 |
|
868 |
upload_button.upload(upload_files, upload_button, file_output)
|
869 |
process_btn.click(process_files, [], text2)
|
|
|
848 |
text2 = gr.Textbox("Gen embedding")
|
849 |
process_btn = gr.Button("Click to embed")
|
850 |
|
851 |
+
reset_btn = gr.Button("Reset everything", visibile=True)
|
852 |
|
853 |
with gr.Tab("Query docs"):
|
854 |
# interactive chat
|
|
|
863 |
ns = deepcopy(ns_initial)
|
864 |
return f"reset done: ns={ns}"
|
865 |
|
866 |
+
reset_btn.click(reset_all, [], text2)
|
867 |
|
868 |
upload_button.upload(upload_files, upload_button, file_output)
|
869 |
process_btn.click(process_files, [], text2)
|