Spaces:
Runtime error
Runtime error
Eric Michael Martinez
commited on
Commit
·
88268be
1
Parent(s):
e84431c
update
Browse files
app.py
CHANGED
@@ -12,8 +12,13 @@ def auth(username, password):
|
|
12 |
app_password = os.getenv("APP_PASSWORD")
|
13 |
|
14 |
if app_username and app_password:
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
17 |
return False
|
18 |
|
19 |
# Define a function to get the AI's reply using the OpenAI API
|
|
|
12 |
app_password = os.getenv("APP_PASSWORD")
|
13 |
|
14 |
if app_username and app_password:
|
15 |
+
if(username == app_username and password == app_password):
|
16 |
+
print("Logged in successfully.")
|
17 |
+
return True
|
18 |
+
else:
|
19 |
+
print("Username or password does not match.")
|
20 |
+
else:
|
21 |
+
print("Credential secrets not set.")
|
22 |
return False
|
23 |
|
24 |
# Define a function to get the AI's reply using the OpenAI API
|