Spaces:
Sleeping
Sleeping
Bimal Bhattarai
commited on
Commit
·
04fe6d3
1
Parent(s):
a04c690
app updated with pydantic-settings
Browse files- app.py +2 -0
- pyproject.toml +1 -0
- requirements.txt +2 -1
app.py
CHANGED
@@ -14,6 +14,8 @@ from htmlTemplates import css, bot_template, user_template
|
|
14 |
from langchain.memory import ConversationBufferMemory
|
15 |
from langchain.chains import ConversationalRetrievalChain
|
16 |
import langchain
|
|
|
|
|
17 |
langchain.verbose = False
|
18 |
if not load_dotenv():
|
19 |
print("Could not load .env file or it is empty. Please check if it exists and is readable.")
|
|
|
14 |
from langchain.memory import ConversationBufferMemory
|
15 |
from langchain.chains import ConversationalRetrievalChain
|
16 |
import langchain
|
17 |
+
from pydantic_settings import BaseSettings
|
18 |
+
|
19 |
langchain.verbose = False
|
20 |
if not load_dotenv():
|
21 |
print("Could not load .env file or it is empty. Please check if it exists and is readable.")
|
pyproject.toml
CHANGED
@@ -23,6 +23,7 @@ pandoc = "^2.3"
|
|
23 |
pypandoc = "^1.11"
|
24 |
tqdm = "4.66.1"
|
25 |
sentence-transformers = "2.2.2"
|
|
|
26 |
|
27 |
|
28 |
|
|
|
23 |
pypandoc = "^1.11"
|
24 |
tqdm = "4.66.1"
|
25 |
sentence-transformers = "2.2.2"
|
26 |
+
pydantic-settings= "2.1.0"
|
27 |
|
28 |
|
29 |
|
requirements.txt
CHANGED
@@ -13,4 +13,5 @@ pandoc==2.3
|
|
13 |
pypandoc==1.11
|
14 |
tqdm==4.66.1
|
15 |
sentence_transformers==2.2.2
|
16 |
-
pypdf
|
|
|
|
13 |
pypandoc==1.11
|
14 |
tqdm==4.66.1
|
15 |
sentence_transformers==2.2.2
|
16 |
+
pypdf
|
17 |
+
pydantic-settings==2.1.0
|