hypeconqueror1 commited on
Commit
abb32d5
·
verified ·
1 Parent(s): 197d88d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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: UploadFile, query: str):
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 = File(...), query: str = Form(...)):
18
  pdf_name = file.filename
19
  with open(pdf_name, 'wb') as f:
20
  f.write(file.file.read())