Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def home():
|
|
| 22 |
|
| 23 |
@app.post("/embed")
|
| 24 |
async def embed_text(data: dict):
|
| 25 |
-
text = data.get("
|
| 26 |
if not text:
|
| 27 |
return {"error": "No text provided"}
|
| 28 |
vector = get_embedding(text)
|
|
|
|
| 22 |
|
| 23 |
@app.post("/embed")
|
| 24 |
async def embed_text(data: dict):
|
| 25 |
+
text = data.get("input", "")
|
| 26 |
if not text:
|
| 27 |
return {"error": "No text provided"}
|
| 28 |
vector = get_embedding(text)
|