mikeee commited on
Commit
3bcce7c
·
1 Parent(s): 378374b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # reset_btn = gr.Button("Reset everything", visibile=False)
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
- # reset_btn.click(reset_all, [], text2)
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)