ysharma HF staff commited on
Commit
44d42d1
1 Parent(s): b4cf5b0

update button events

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ with gr.Blocks() as demo:
153
  html_out = gr.HTML()
154
 
155
  btn_faiss.click(create_search_index, [repo_link, openai_api_key],search_index_file )
156
- search_index_file.upload(fn=set_state, inputs=[] , outputs=[hf_token_in, btn_create_space])
157
  btn_create_space.click(driver, [repo_link, hf_token_in], html_out)
158
 
159
  demo.queue()
 
153
  html_out = gr.HTML()
154
 
155
  btn_faiss.click(create_search_index, [repo_link, openai_api_key],search_index_file )
156
+ btn_faiss.click(fn=set_state, inputs=[] , outputs=[hf_token_in, btn_create_space])
157
  btn_create_space.click(driver, [repo_link, hf_token_in], html_out)
158
 
159
  demo.queue()