Spaces:
Runtime error
Runtime error
hf token?
Browse files- src/chatbot.py +4 -0
src/chatbot.py
CHANGED
@@ -11,6 +11,10 @@ from dotenv import load_dotenv, find_dotenv
|
|
11 |
#Load environmental variables from .env-file
|
12 |
load_dotenv(find_dotenv())
|
13 |
|
|
|
|
|
|
|
|
|
14 |
|
15 |
embeddings = HuggingFaceEmbeddings(model_name="paraphrase-multilingual-MiniLM-L12-v2")
|
16 |
llm = HuggingFaceHub(
|
|
|
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")
|
20 |
llm = HuggingFaceHub(
|