Spaces:
Sleeping
Sleeping
HUANG-Stephanie
commited on
Commit
•
d2b07a8
1
Parent(s):
45c1bf0
Update app.py
Browse files
app.py
CHANGED
@@ -129,8 +129,8 @@ async def search(query: str, k: int = 1):
|
|
129 |
|
130 |
return response
|
131 |
|
132 |
-
@app.post("/
|
133 |
-
async def
|
134 |
content = await file.read()
|
135 |
pdf_image_list = convert_from_bytes(content)
|
136 |
|
|
|
129 |
|
130 |
return response
|
131 |
|
132 |
+
@app.post("/recommendation")
|
133 |
+
async def recommendation(file: UploadFile = File(...), k: int = 10):
|
134 |
content = await file.read()
|
135 |
pdf_image_list = convert_from_bytes(content)
|
136 |
|