Spaces:
Runtime error
Runtime error
Commit ·
cc46be2
1
Parent(s): 36b893f
Change app.py
Browse files
app.py
CHANGED
|
@@ -178,7 +178,7 @@ Please provide a clear response using the above context"""
|
|
| 178 |
# Authentication
|
| 179 |
@cl.password_auth_callback
|
| 180 |
def auth(username: str, password: str) -> Optional[cl.User]:
|
| 181 |
-
if (username, password) == ("admin",
|
| 182 |
return cl.User(
|
| 183 |
identifier="admin",
|
| 184 |
metadata={"role": "admin", "provider": "credentials"},
|
|
|
|
| 178 |
# Authentication
|
| 179 |
@cl.password_auth_callback
|
| 180 |
def auth(username: str, password: str) -> Optional[cl.User]:
|
| 181 |
+
if (username, password) == ("admin", os.getenv("PASSWORD")):
|
| 182 |
return cl.User(
|
| 183 |
identifier="admin",
|
| 184 |
metadata={"role": "admin", "provider": "credentials"},
|