We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d249c7 + 1104471 commit dac8d34Copy full SHA for dac8d34
application/app.py
@@ -9,6 +9,13 @@
9
from langchain.chains import VectorDBQAWithSourcesChain
10
from langchain.prompts import PromptTemplate
11
12
+# Redirect PosixPath to WindowsPath on Windows
13
+import platform
14
+if platform.system() == "Windows":
15
+ import pathlib
16
+ temp = pathlib.PosixPath
17
+ pathlib.PosixPath = pathlib.WindowsPath
18
+
19
# loading the .env file
20
dotenv.load_dotenv()
21
0 commit comments