Spaces:
Sleeping
Sleeping
Tushar Malik
commited on
Update app.py
Browse files
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
|