Emanuela Boros
commited on
Commit
•
8f6f377
1
Parent(s):
630fed6
Add token for private repos
Browse files
app.py
CHANGED
@@ -3,8 +3,9 @@ from transformers import pipeline
|
|
3 |
import os
|
4 |
|
5 |
token = os.getenv("HF_TOKEN")
|
6 |
-
get_completion = pipeline(
|
7 |
-
|
|
|
8 |
|
9 |
|
10 |
def ner(input):
|
|
|
3 |
import os
|
4 |
|
5 |
token = os.getenv("HF_TOKEN")
|
6 |
+
get_completion = pipeline(
|
7 |
+
"ner", model="impresso-project/bert-newsagency-ner-fr", use_auth_token=token
|
8 |
+
)
|
9 |
|
10 |
|
11 |
def ner(input):
|