Emil25 commited on
Commit
38f7ef3
1 Parent(s): 279c7d1

Update pages/Cards.py

Browse files
Files changed (1) hide show
  1. pages/Cards.py +1 -1
pages/Cards.py CHANGED
@@ -8,7 +8,7 @@ import os
8
  API_URL_gen = "https://api-inference.huggingface.co/models/facebook/blenderbot-400M-distill"
9
  API_URL_tra = "https://api-inference.huggingface.co/models/Helsinki-NLP/opus-mt-en-ru"
10
 
11
- headers = {"Authorization": api_token}
12
 
13
  # Функция для генерирования предложения
14
  def generate_example(payload):
 
8
  API_URL_gen = "https://api-inference.huggingface.co/models/facebook/blenderbot-400M-distill"
9
  API_URL_tra = "https://api-inference.huggingface.co/models/Helsinki-NLP/opus-mt-en-ru"
10
 
11
+ headers = {"Authorization": os.getenv("api_token")}
12
 
13
  # Функция для генерирования предложения
14
  def generate_example(payload):