Spaces:
Runtime error
Runtime error
minor fix
Browse files- app/main.py +2 -1
app/main.py
CHANGED
@@ -50,7 +50,8 @@ async def websocket_endpoint(websocket: WebSocket, client_id: int):
|
|
50 |
current_time = now.strftime("%H:%M")
|
51 |
try:
|
52 |
while True:
|
53 |
-
data = await websocket.receive_text()
|
|
|
54 |
if len(data) > 0:
|
55 |
generator = session_assistant.ask(data)
|
56 |
for text in generator:
|
|
|
50 |
current_time = now.strftime("%H:%M")
|
51 |
try:
|
52 |
while True:
|
53 |
+
data = await websocket.receive_text()
|
54 |
+
data = data.strip()
|
55 |
if len(data) > 0:
|
56 |
generator = session_assistant.ask(data)
|
57 |
for text in generator:
|