Update repo secret name
Browse files- generator.py +1 -1
generator.py
CHANGED
@@ -18,7 +18,7 @@ def load_model(model_name, task):
|
|
18 |
try:
|
19 |
if not os.path.exists(".streamlit/secrets.toml"):
|
20 |
raise FileNotFoundError
|
21 |
-
access_token = st.secrets.get("
|
22 |
except FileNotFoundError:
|
23 |
access_token = os.environ.get("HF_ACCESS_TOKEN", None)
|
24 |
tokenizer = AutoTokenizer.from_pretrained(
|
|
|
18 |
try:
|
19 |
if not os.path.exists(".streamlit/secrets.toml"):
|
20 |
raise FileNotFoundError
|
21 |
+
access_token = st.secrets.get("babel")
|
22 |
except FileNotFoundError:
|
23 |
access_token = os.environ.get("HF_ACCESS_TOKEN", None)
|
24 |
tokenizer = AutoTokenizer.from_pretrained(
|