Spaces:
Runtime error
Runtime error
update env
Browse files- src/chatbot.py +2 -6
src/chatbot.py
CHANGED
@@ -6,14 +6,10 @@ from langchain_community.embeddings import HuggingFaceEmbeddings
|
|
6 |
from src.vectordatabase import RAG, get_vectorstore
|
7 |
import pandas as pd
|
8 |
import os
|
9 |
-
from dotenv import load_dotenv, find_dotenv
|
10 |
|
11 |
#Load environmental variables from .env-file
|
12 |
-
load_dotenv(find_dotenv())
|
13 |
-
|
14 |
-
from getpass import getpass
|
15 |
-
|
16 |
-
HUGGINGFACEHUB_API_TOKEN = getpass()
|
17 |
|
18 |
|
19 |
embeddings = HuggingFaceEmbeddings(model_name="paraphrase-multilingual-MiniLM-L12-v2")
|
|
|
6 |
from src.vectordatabase import RAG, get_vectorstore
|
7 |
import pandas as pd
|
8 |
import os
|
9 |
+
#from dotenv import load_dotenv, find_dotenv
|
10 |
|
11 |
#Load environmental variables from .env-file
|
12 |
+
#load_dotenv(find_dotenv())
|
|
|
|
|
|
|
|
|
13 |
|
14 |
|
15 |
embeddings = HuggingFaceEmbeddings(model_name="paraphrase-multilingual-MiniLM-L12-v2")
|