Spaces:
Running
Running
Pclanglais
commited on
Commit
•
80a2f6a
1
Parent(s):
11b325d
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import pandas as pd
|
|
12 |
# Define the device
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
|
15 |
-
|
16 |
token_classifier = pipeline(
|
17 |
"token-classification", model=editorial_model, aggregation_strategy="simple", device=device
|
18 |
)
|
|
|
12 |
# Define the device
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
|
15 |
+
editorial_model = "PleIAs/Estienne"
|
16 |
token_classifier = pipeline(
|
17 |
"token-classification", model=editorial_model, aggregation_strategy="simple", device=device
|
18 |
)
|