Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
server.py
CHANGED
|
@@ -88,7 +88,7 @@ async def handle_chat(msg: Message, request: Request):
|
|
| 88 |
session_id = msg.session_id
|
| 89 |
if not session_id:
|
| 90 |
session_id = str(uuid.uuid4())
|
| 91 |
-
|
| 92 |
# Get or create a persistent thread_id for this session
|
| 93 |
if session_id not in thread_map:
|
| 94 |
thread_map[session_id] = str(uuid.uuid4())
|
|
|
|
| 88 |
session_id = msg.session_id
|
| 89 |
if not session_id:
|
| 90 |
session_id = str(uuid.uuid4())
|
| 91 |
+
print(session_id, ": user sent message : ", msg.text)
|
| 92 |
# Get or create a persistent thread_id for this session
|
| 93 |
if session_id not in thread_map:
|
| 94 |
thread_map[session_id] = str(uuid.uuid4())
|