Spaces:
Paused
Paused
Commit
·
324ca9f
1
Parent(s):
70982cd
Update main.py
Browse files
main.py
CHANGED
@@ -78,9 +78,10 @@ def map(query: Optional[str], items: Optional[list[str]]):
|
|
78 |
return JSONResponse(jsonable_encoder(scores))
|
79 |
|
80 |
async def handle_answerer_local(ws: WebSocket, input: str):
|
81 |
-
output = answerer(
|
82 |
-
|
83 |
-
|
|
|
84 |
|
85 |
async def handle_answerer_accelerated(ws: WebSocket, input: str):
|
86 |
output = await accelerator.accelerate(input)
|
|
|
78 |
return JSONResponse(jsonable_encoder(scores))
|
79 |
|
80 |
async def handle_answerer_local(ws: WebSocket, input: str):
|
81 |
+
output = answerer(msg, 128)
|
82 |
+
el: str
|
83 |
+
async for el in output: pass
|
84 |
+
ws.send_text(el)
|
85 |
|
86 |
async def handle_answerer_accelerated(ws: WebSocket, input: str):
|
87 |
output = await accelerator.accelerate(input)
|