Spaces:
Runtime error
Runtime error
AIMage2024
commited on
Update gradio_app.py
Browse files- 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 |
-
|
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()
|