Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,18 @@ import chainlit as cl
|
|
5 |
from chain import Chain
|
6 |
import os
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
@cl.on_chat_start
|
10 |
async def start_chat():
|
|
|
5 |
from chain import Chain
|
6 |
import os
|
7 |
|
8 |
+
from typing import Dict, Optional
|
9 |
+
import chainlit as cl
|
10 |
+
|
11 |
+
|
12 |
+
@cl.oauth_callback
|
13 |
+
def oauth_callback(
|
14 |
+
provider_id: str,
|
15 |
+
token: str,
|
16 |
+
raw_user_data: Dict[str, str],
|
17 |
+
default_user: cl.User,
|
18 |
+
) -> Optional[cl.User]:
|
19 |
+
return default_user
|
20 |
|
21 |
@cl.on_chat_start
|
22 |
async def start_chat():
|