DaniilAlpha commited on
Commit
324ca9f
·
1 Parent(s): 70982cd

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -3
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(input, 32)
82
- async for el in output:
83
- await ws.send_text(el)
 
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)