hypeconqueror1 commited on
Commit
1713b7b
·
verified ·
1 Parent(s): 13fc60b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -17,7 +17,7 @@ async def home():
17
  @app.post('/PromptBuddy')
18
  async def PromptLLM(file: UploadFile = File(...), query: str = Form(...)):
19
 
20
- with open(file, 'w') as file:
21
  file.write('pdf_file')
22
 
23
  loader = PyMuPDFLoader(file_path='pdf_file')
 
17
  @app.post('/PromptBuddy')
18
  async def PromptLLM(file: UploadFile = File(...), query: str = Form(...)):
19
 
20
+ with open(file.filename, 'w') as file:
21
  file.write('pdf_file')
22
 
23
  loader = PyMuPDFLoader(file_path='pdf_file')