Spaces:
Runtime error
Runtime error
Might have foudn filenotfounderror fix (helps if you spell the file name correctly...)
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ if torch.cuda.is_available():
|
|
117 |
service_context = ServiceContext.from_defaults(chunk_size=1024, llm=llm, embed_model=embeddings)
|
118 |
set_global_service_context(service_context)
|
119 |
print(os.listdir())
|
120 |
-
file_path = Path(
|
121 |
documents = read_pdf_to_documents(file_path)
|
122 |
index = VectorStoreIndex.from_documents(documents)
|
123 |
query_engine = index.as_query_engine()
|
|
|
117 |
service_context = ServiceContext.from_defaults(chunk_size=1024, llm=llm, embed_model=embeddings)
|
118 |
set_global_service_context(service_context)
|
119 |
print(os.listdir())
|
120 |
+
file_path = Path("files/Full_Pamplet.pdf")
|
121 |
documents = read_pdf_to_documents(file_path)
|
122 |
index = VectorStoreIndex.from_documents(documents)
|
123 |
query_engine = index.as_query_engine()
|