Spaces:
Sleeping
Sleeping
Update app.py
Browse files14 unmodified lines1516171819202114 unmodified lines@app.post("/embeddings")async def embeddings(req: Req):def do():embedding_model.encode(req.input).tolist()return JSONResponse(await asyncio.to_thread(do))14 unmodified lines1516171819202114 unmodified lines@app.post("/embeddings")async def embeddings(req: Req):def do():return embedding_model.encode(req.input).tolist()return JSONResponse(await asyncio.to_thread(do))
app.py+1-1