Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ from transformers import RagTokenizer, RagSequenceForGeneration
|
|
5 |
from sentence_transformers import SentenceTransformer
|
6 |
|
7 |
#Konstanten
|
8 |
-
HF_READ = os.getenv("HF_READ")
|
9 |
ANTI_BOT_PW = os.getenv("CORRECT_VALIDATE")
|
|
|
10 |
# Setzen des Hugging Face Tokens als Umgebungsvariable
|
11 |
-
os.environ["HUGGINGFACEHUB_API_TOKEN"] = HF_READ
|
12 |
|
13 |
# Initialisierung des Sentence-BERT Modells für die Embeddings
|
14 |
embedding_model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
|
5 |
from sentence_transformers import SentenceTransformer
|
6 |
|
7 |
#Konstanten
|
|
|
8 |
ANTI_BOT_PW = os.getenv("CORRECT_VALIDATE")
|
9 |
+
|
10 |
# Setzen des Hugging Face Tokens als Umgebungsvariable
|
11 |
+
os.environ["HUGGINGFACEHUB_API_TOKEN"] = os.getenv("HF_READ")
|
12 |
|
13 |
# Initialisierung des Sentence-BERT Modells für die Embeddings
|
14 |
embedding_model = SentenceTransformer('all-MiniLM-L6-v2')
|