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