futranbg commited on
Commit
6c97374
·
verified ·
1 Parent(s): 76af122

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,6 +22,6 @@ async def get_embeddings(request: EmbeddingRequest):
22
  try:
23
  # Get embeddings for the input text
24
  embeddings = model.encode(request.inputs, convert_to_numpy=True).tolist()
25
- return {"embeddings": embeddings}
26
  except Exception as e:
27
  raise HTTPException(status_code=500, detail=str(e))
 
22
  try:
23
  # Get embeddings for the input text
24
  embeddings = model.encode(request.inputs, convert_to_numpy=True).tolist()
25
+ return embeddings
26
  except Exception as e:
27
  raise HTTPException(status_code=500, detail=str(e))