update inputs for gr.upload
Browse files
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, 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 |
+
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()
|