Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ from unidecode import unidecode
|
|
20 |
import string
|
21 |
import re
|
22 |
|
23 |
-
auth_token = os.environ.get("
|
24 |
|
25 |
tokenizer = AutoTokenizer.from_pretrained("osiria/bert-base-cased-ner-en", use_auth_token=auth_token)
|
26 |
model = BertForTokenClassification.from_pretrained("osiria/bert-base-cased-ner-en", num_labels = 5, use_auth_token=auth_token)
|
|
|
20 |
import string
|
21 |
import re
|
22 |
|
23 |
+
auth_token = os.environ.get("AUTH_TOKEN")
|
24 |
|
25 |
tokenizer = AutoTokenizer.from_pretrained("osiria/bert-base-cased-ner-en", use_auth_token=auth_token)
|
26 |
model = BertForTokenClassification.from_pretrained("osiria/bert-base-cased-ner-en", num_labels = 5, use_auth_token=auth_token)
|