Update app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +85,10 @@ def get_vectorstore(text_chunks):
|
|
| 85 |
print("-----")
|
| 86 |
return vectorstore
|
| 87 |
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
| 89 |
text_chunks = get_text_chunks(pdf_text)
|
| 90 |
api_db = get_vectorstore(text_chunks)
|
| 91 |
|
|
|
|
| 85 |
print("-----")
|
| 86 |
return vectorstore
|
| 87 |
|
| 88 |
+
# Adjust the path to your PDF file by escaping the space
|
| 89 |
+
pdf_path = "new_papers/ALiBi.pdf"
|
| 90 |
+
pdf_text = get_pdf_text(pdf_path)
|
| 91 |
+
|
| 92 |
text_chunks = get_text_chunks(pdf_text)
|
| 93 |
api_db = get_vectorstore(text_chunks)
|
| 94 |
|