Spaces:
Runtime error
Runtime error
AIMage2024
commited on
Update gradio_app.py
Browse files- gradio_app.py +4 -3
gradio_app.py
CHANGED
@@ -87,9 +87,10 @@ def get_parser():
|
|
87 |
return parser
|
88 |
|
89 |
def check_auth(username, password):
|
90 |
-
|
91 |
-
|
92 |
-
return
|
|
|
93 |
if __name__ == "__main__":
|
94 |
parser = get_parser()
|
95 |
args = parser.parse_args()
|
|
|
87 |
return parser
|
88 |
|
89 |
def check_auth(username, password):
|
90 |
+
|
91 |
+
# if os.getenv(username) is not None:
|
92 |
+
return os.getenv(username) == password
|
93 |
+
# return False
|
94 |
if __name__ == "__main__":
|
95 |
parser = get_parser()
|
96 |
args = parser.parse_args()
|