AIMage2024 commited on
Commit
3b1c2b5
·
verified ·
1 Parent(s): 6d86451

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +3 -2
gradio_app.py CHANGED
@@ -87,8 +87,9 @@ def get_parser():
87
  return parser
88
 
89
  def check_auth(username, password):
90
- return os.getenv(username) == password
91
-
 
92
  if __name__ == "__main__":
93
  parser = get_parser()
94
  args = parser.parse_args()
 
87
  return parser
88
 
89
  def check_auth(username, password):
90
+ if os.getenv(username) is not None:
91
+ return os.getenv(username) == password
92
+ return False
93
  if __name__ == "__main__":
94
  parser = get_parser()
95
  args = parser.parse_args()