HUANG-Stephanie commited on
Commit
1b183b6
·
verified ·
1 Parent(s): b909e86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ async def index(files: List[UploadFile] = File(...)):
74
 
75
  return {"message": f"Uploaded and converted {len(images)} pages"}
76
 
77
- @app.post("/search")
78
  async def search(query: str, k: int):
79
  qs = []
80
  with torch.no_grad():
 
74
 
75
  return {"message": f"Uploaded and converted {len(images)} pages"}
76
 
77
+ @app.get("/search")
78
  async def search(query: str, k: int):
79
  qs = []
80
  with torch.no_grad():