alexanderHSG commited on
Commit
01f8c8e
·
1 Parent(s): b0699d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -313,7 +313,11 @@ def profile_user(username, password):
313
  global user_id
314
  user_id = username
315
  track_user_interaction("", "login")
316
- return True
 
 
 
 
317
 
318
 
319
 
@@ -780,4 +784,4 @@ Outcome: Fellow consultant will develop a comprehensive understanding of AI's po
780
 
781
 
782
  gr.close_all()
783
- demo.launch(show_api=False, auth_message = "Hello there! Please log in to access the NarrativeNet Weaver using your Prolific ID as username. The password is 'graphs24'.", auth=profile_user)
 
313
  global user_id
314
  user_id = username
315
  track_user_interaction("", "login")
316
+ if password == os.getenv("APP_PASSWORD"):
317
+ return True
318
+ else:
319
+ return False
320
+
321
 
322
 
323
 
 
784
 
785
 
786
  gr.close_all()
787
+ demo.launch(show_api=False, auth_message = "Hello there! Please log in to access the NarrativeNet Weaver using your Prolific ID as username. Use the password supplied in Qualtrics.", auth=profile_user)