Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import os
|
|
4 |
import re
|
5 |
|
6 |
import chromadb
|
7 |
-
from pydantic.v1 import BaseSettings
|
8 |
from dotenv import load_dotenv
|
9 |
from fastapi.encoders import jsonable_encoder
|
10 |
from langchain.document_loaders import PyPDFLoader
|
@@ -12,7 +12,7 @@ from langchain.embeddings import OpenAIEmbeddings
|
|
12 |
from langchain.vectorstores import Chroma
|
13 |
|
14 |
load_dotenv()
|
15 |
-
logging.basicConfig(level=logging.DEBUG)
|
16 |
|
17 |
ABS_PATH = os.path.dirname(os.path.abspath(__file__))
|
18 |
DB_DIR = os.path.join(ABS_PATH, "db")
|
|
|
4 |
import re
|
5 |
|
6 |
import chromadb
|
7 |
+
#from pydantic.v1 import BaseSettings
|
8 |
from dotenv import load_dotenv
|
9 |
from fastapi.encoders import jsonable_encoder
|
10 |
from langchain.document_loaders import PyPDFLoader
|
|
|
12 |
from langchain.vectorstores import Chroma
|
13 |
|
14 |
load_dotenv()
|
15 |
+
#logging.basicConfig(level=logging.DEBUG)
|
16 |
|
17 |
ABS_PATH = os.path.dirname(os.path.abspath(__file__))
|
18 |
DB_DIR = os.path.join(ABS_PATH, "db")
|