Tushar Malik commited on
Commit
838135e
·
verified ·
1 Parent(s): 02fc9e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -511,7 +511,7 @@ def chatbot_interface(user_query, response_style, selected_retrieval_methods, se
511
 
512
  if pdf_file is not None:
513
  with tempfile.NamedTemporaryFile(mode="wb", suffix=".pdf", delete=False) as tmp:
514
- tmp.write(pdf_file) # Write the uploaded file content to the temporary file
515
  pdf_path = tmp.name
516
 
517
  # Create vector DB and Annoy index
 
511
 
512
  if pdf_file is not None:
513
  with tempfile.NamedTemporaryFile(mode="wb", suffix=".pdf", delete=False) as tmp:
514
+ tmp.write(pdf_file.read()) # Write the uploaded file content to the temporary file
515
  pdf_path = tmp.name
516
 
517
  # Create vector DB and Annoy index