hypeconqueror1 commited on
Commit
feb7435
·
verified ·
1 Parent(s): 9192bcd

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: Annotated[UploadFile, File()], query: Annotated[str, Form()]):
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())