olfp commited on
Commit
ce02c02
·
verified ·
1 Parent(s): acf62cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -304,4 +304,10 @@ with demo:
304
  outputs=[baseline_gallery]
305
  )
306
 
307
- demo.launch()
 
 
 
 
 
 
 
304
  outputs=[baseline_gallery]
305
  )
306
 
307
+ def environ_auth(username, password):
308
+ if username == os.environ["username"] and password == os.environ["password"]:
309
+ return True
310
+ else:
311
+ return False
312
+
313
+ demo.launch(auth=environ_auth).launch()