640510702phithak commited on
Commit
8066ac3
·
verified ·
1 Parent(s): b758948

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("text", "")
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)