cdancy commited on
Commit
c3db68f
Β·
1 Parent(s): 97d29d0

Might have foudn filenotfounderror fix (helps if you spell the file name correctly...)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(os.getcwd() + "/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()
 
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()