Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from transformers import (
|
|
8 |
from transformers_interpret import SequenceClassificationExplainer
|
9 |
from hebrewtools.functions import sbl_normalization
|
10 |
|
11 |
-
model_name = '
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
13 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
14 |
cls_explainer = SequenceClassificationExplainer(model, tokenizer)
|
|
|
8 |
from transformers_interpret import SequenceClassificationExplainer
|
9 |
from hebrewtools.functions import sbl_normalization
|
10 |
|
11 |
+
model_name = 'martijn75/COHeN_2.0_10_epochs'
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
13 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
14 |
cls_explainer = SequenceClassificationExplainer(model, tokenizer)
|