liang-huggingface commited on
Commit
5a09dc6
·
1 Parent(s): 16a7f15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -121,8 +121,8 @@ def summarize_articles(indices, articles_for_display):
121
 
122
  PASSWORD = "pass"
123
 
124
- def check_password(username, password):
125
- if username == USERNAME and password == PASSWORD:
126
  return True, "Welcome!"
127
  else:
128
  return False, "Incorrect username or password."
@@ -161,7 +161,7 @@ with gr.Blocks() as demo:
161
  login_result.update(value=message)
162
  login_result.visible = True
163
 
164
- login_button.click(check_password, inputs=[username_input, password_input], outputs=[process_login])
165
 
166
  def update_output_table(query, retmax):
167
  df = search_pubmed(query, retmax)
 
121
 
122
  PASSWORD = "pass"
123
 
124
+ def check_password(password):
125
+ if password == PASSWORD:
126
  return True, "Welcome!"
127
  else:
128
  return False, "Incorrect username or password."
 
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)