testing code so ignoroing the some pdfs
Browse files
app.py
CHANGED
|
@@ -155,28 +155,28 @@ flask_app = Flask(__name__)
|
|
| 155 |
|
| 156 |
vectordb = vectorstore(path="data/PDF/Cancer The Evolutionary Legacy .pdf", Initlize_with=1)
|
| 157 |
print("done creating vectorstore")
|
| 158 |
-
vectordb.add_to_vectorstore_from_pdf("data/PDF/cancer_dictionary.pdf")
|
| 159 |
-
print("done adding cancer dictionary")
|
| 160 |
|
| 161 |
-
vectordb.add_to_vectorstore_from_pdf("data/PDF/Colon and Other GastrointestinalCancers.pdf")
|
| 162 |
-
print("done adding colon and other gastrointestinal cancers")
|
| 163 |
|
| 164 |
-
vectordb.add_to_vectorstore_from_pdf("data/PDF/Medical Dictionary.pdf")
|
| 165 |
-
print("done adding medical dictionary")
|
| 166 |
|
| 167 |
-
vectordb.add_to_vectorstore_from_pdf("data/PDF/Molecular biology of cancer.pdf")
|
| 168 |
-
print("done adding molecular biology of cancer")
|
| 169 |
|
| 170 |
-
vectordb.add_to_vectorstore_from_pdf("data/PDF/The biology of cancer.pdf")
|
| 171 |
-
print("done adding the biology of cancer")
|
| 172 |
|
| 173 |
-
vectordb.add_to_vectorstore_from_pdf("data/PDF/Being mortal _ medicine and what matters in the end .pdf")
|
| 174 |
-
print("done adding the biology of cancer")
|
| 175 |
|
| 176 |
-
vectordb.add_to_vectorstore_from_pdf("data/PDF/The Emperor of All Maladies_ A Biography of Cancer.pdf")
|
| 177 |
-
print("done adding the biology of cancer")
|
| 178 |
|
| 179 |
-
print("finished vectorization")
|
| 180 |
|
| 181 |
vectordb_path = "VectorDB/vectorstore_mainV2"
|
| 182 |
cancer_app_instance = CancerApp(vectordb_path)
|
|
|
|
| 155 |
|
| 156 |
vectordb = vectorstore(path="data/PDF/Cancer The Evolutionary Legacy .pdf", Initlize_with=1)
|
| 157 |
print("done creating vectorstore")
|
| 158 |
+
# vectordb.add_to_vectorstore_from_pdf("data/PDF/cancer_dictionary.pdf")
|
| 159 |
+
# print("done adding cancer dictionary")
|
| 160 |
|
| 161 |
+
# vectordb.add_to_vectorstore_from_pdf("data/PDF/Colon and Other GastrointestinalCancers.pdf")
|
| 162 |
+
# print("done adding colon and other gastrointestinal cancers")
|
| 163 |
|
| 164 |
+
# vectordb.add_to_vectorstore_from_pdf("data/PDF/Medical Dictionary.pdf")
|
| 165 |
+
# print("done adding medical dictionary")
|
| 166 |
|
| 167 |
+
# vectordb.add_to_vectorstore_from_pdf("data/PDF/Molecular biology of cancer.pdf")
|
| 168 |
+
# print("done adding molecular biology of cancer")
|
| 169 |
|
| 170 |
+
# vectordb.add_to_vectorstore_from_pdf("data/PDF/The biology of cancer.pdf")
|
| 171 |
+
# print("done adding the biology of cancer")
|
| 172 |
|
| 173 |
+
# vectordb.add_to_vectorstore_from_pdf("data/PDF/Being mortal _ medicine and what matters in the end .pdf")
|
| 174 |
+
# print("done adding the biology of cancer")
|
| 175 |
|
| 176 |
+
# vectordb.add_to_vectorstore_from_pdf("data/PDF/The Emperor of All Maladies_ A Biography of Cancer.pdf")
|
| 177 |
+
# print("done adding the biology of cancer")
|
| 178 |
|
| 179 |
+
# print("finished vectorization")
|
| 180 |
|
| 181 |
vectordb_path = "VectorDB/vectorstore_mainV2"
|
| 182 |
cancer_app_instance = CancerApp(vectordb_path)
|