liang-huggingface commited on
Commit
4d5fdb8
·
1 Parent(s): f215822

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -161,7 +161,9 @@ with gr.Blocks() as demo:
161
  login_result.update(value=message)
162
  login_result.visible = True
163
 
164
- login_button.click(check_password, inputs=[password_input], outputs=[process_login])
 
 
165
 
166
  def update_output_table(query, retmax):
167
  df = search_pubmed(query, retmax)
 
161
  login_result.update(value=message)
162
  login_result.visible = True
163
 
164
+ login_button.click(check_password, inputs=[password_input], outputs=[login_result]).then(
165
+ process_login, [login_result], []
166
+ )
167
 
168
  def update_output_table(query, retmax):
169
  df = search_pubmed(query, retmax)