Almaatla commited on
Commit
107dfba
·
verified ·
1 Parent(s): a672ffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def read_root(request: Request):
15
  return templates.TemplateResponse("index.html", {"request": request})
16
 
17
  @app.post("/embed")
18
- def embed_string(query: str)):
19
  embedding = model.encode([query])
20
  index.add(np.array(embedding))
21
  return {"message": "String embedded and added to FAISS database"}
 
15
  return templates.TemplateResponse("index.html", {"request": request})
16
 
17
  @app.post("/embed")
18
+ def embed_string(query: str):
19
  embedding = model.encode([query])
20
  index.add(np.array(embedding))
21
  return {"message": "String embedded and added to FAISS database"}