diff --git a/application/app.py b/application/app.py index eeb00c34..bbfc0604 100644 --- a/application/app.py +++ b/application/app.py @@ -9,6 +9,13 @@ from langchain import OpenAI from langchain.chains import VectorDBQAWithSourcesChain from langchain.prompts import PromptTemplate +# Redirect PosixPath to WindowsPath on Windows +import platform +if platform.system() == "Windows": + import pathlib + temp = pathlib.PosixPath + pathlib.PosixPath = pathlib.WindowsPath + # loading the .env file dotenv.load_dotenv()