Merge pull request #13 from fernvenue/patch-1

Redirect PosixPath to WindowsPath on Windows.
pull/35/head
Alex 1 year ago committed by GitHub
commit dac8d34c6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save