Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,15 +35,8 @@ from typing import Dict, Optional
|
|
| 35 |
import chainlit as cl
|
| 36 |
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
# Verify the signature of a token in the header (ex: jwt token)
|
| 41 |
-
# or check that the value is matching a row from your database
|
| 42 |
-
if headers.get("test-header") == "test-value":
|
| 43 |
-
return cl.User(identifier="admin", metadata={"role": "admin", "provider": "header"})
|
| 44 |
-
else:
|
| 45 |
-
return None
|
| 46 |
-
|
| 47 |
@cl.on_chat_start
|
| 48 |
async def on_chat_start():
|
| 49 |
prompt = ChatPromptTemplate.from_messages(
|
|
|
|
| 35 |
import chainlit as cl
|
| 36 |
|
| 37 |
|
| 38 |
+
print(os.getenv["OPENID_PROVIDER_URL"])
|
| 39 |
+
print(os.getenv("OAUTH_CLIENT_ID"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
@cl.on_chat_start
|
| 41 |
async def on_chat_start():
|
| 42 |
prompt = ChatPromptTemplate.from_messages(
|