Spaces:
Sleeping
Sleeping
fix connect mongodb
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ async def chat_endpoint(request: ChatRequest):
|
|
95 |
start_time = time.time()
|
96 |
try:
|
97 |
# Gọi hàm chat với thông tin được cung cấp
|
98 |
-
response = await asyncio.to_thread(chatbot.chat, request.query, request.user_id)
|
99 |
process_time = time.time() - start_time
|
100 |
return ChatResponse(
|
101 |
response=response,
|
|
|
95 |
start_time = time.time()
|
96 |
try:
|
97 |
# Gọi hàm chat với thông tin được cung cấp
|
98 |
+
response = await asyncio.to_thread(chatbot.chat, request.query, int(request.user_id))
|
99 |
process_time = time.time() - start_time
|
100 |
return ChatResponse(
|
101 |
response=response,
|