Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
cordwainersmith
commited on
Commit
•
5584918
1
Parent(s):
5d89fbb
Add token
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ MODEL_DETAILS = {
|
|
66 |
class PIIMaskingModel:
|
67 |
def __init__(self, model_name: str):
|
68 |
self.model_name = model_name
|
69 |
-
hf_token = st.secrets["
|
70 |
self.tokenizer = AutoTokenizer.from_pretrained(
|
71 |
model_name, use_auth_token=hf_token
|
72 |
)
|
|
|
66 |
class PIIMaskingModel:
|
67 |
def __init__(self, model_name: str):
|
68 |
self.model_name = model_name
|
69 |
+
hf_token = st.secrets["hf_token"] # Retrieve the token from secrets
|
70 |
self.tokenizer = AutoTokenizer.from_pretrained(
|
71 |
model_name, use_auth_token=hf_token
|
72 |
)
|