Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -14,7 +14,7 @@ async def home():
|
|
14 |
return "API Server Running"
|
15 |
|
16 |
@app.post('/PromptBuddy')
|
17 |
-
async def PromptLLM(file:
|
18 |
pdf_name = file.filename
|
19 |
with open(pdf_name, 'wb') as f:
|
20 |
f.write(file.file.read())
|
|
|
14 |
return "API Server Running"
|
15 |
|
16 |
@app.post('/PromptBuddy')
|
17 |
+
async def PromptLLM(file: UploadFile, query: str):
|
18 |
pdf_name = file.filename
|
19 |
with open(pdf_name, 'wb') as f:
|
20 |
f.write(file.file.read())
|