alexkueck commited on
Commit
46f3018
·
verified ·
1 Parent(s): ac01627

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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')