Spaces:
Runtime error
Runtime error
Commit
β’
ed818ca
1
Parent(s):
ea29690
Update app.py
Browse files
app.py
CHANGED
@@ -11,15 +11,15 @@ from langchain.chains import ConversationalRetrievalChain
|
|
11 |
from langchain_community.embeddings import HuggingFaceBgeEmbeddings
|
12 |
from langchain_community.vectorstores import FAISS
|
13 |
from langchain_community.document_loaders import PyPDFLoader
|
14 |
-
from dotenv import load_dotenv, find_dotenv
|
15 |
import pickle
|
16 |
import os
|
17 |
|
18 |
|
19 |
## loading the .env file
|
20 |
-
load_dotenv(find_dotenv())
|
21 |
|
22 |
-
huggingfacehub_api_token = os.
|
23 |
|
24 |
|
25 |
# loader = PyPDFLoader("data/stg.pdf")
|
|
|
11 |
from langchain_community.embeddings import HuggingFaceBgeEmbeddings
|
12 |
from langchain_community.vectorstores import FAISS
|
13 |
from langchain_community.document_loaders import PyPDFLoader
|
14 |
+
# from dotenv import load_dotenv, find_dotenv
|
15 |
import pickle
|
16 |
import os
|
17 |
|
18 |
|
19 |
## loading the .env file
|
20 |
+
# load_dotenv(find_dotenv())
|
21 |
|
22 |
+
huggingfacehub_api_token = os.environ("HUGGINGFACEHUB_API_TOKEN")
|
23 |
|
24 |
|
25 |
# loader = PyPDFLoader("data/stg.pdf")
|