Spaces:
Running
Running
Update app.py
Browse files
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
|
| 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))
|