Spaces:
Sleeping
Sleeping
Update pages/Cards.py
Browse files- 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):
|