Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ from explainer import CustomExplainer
|
|
| 5 |
import numpy as np
|
| 6 |
|
| 7 |
checkpoint = "Detsutut/medbit-assertion-negation"
|
| 8 |
-
model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=3
|
| 9 |
-
tokenizer = AutoTokenizer.from_pretrained(checkpoint
|
| 10 |
cls_explainer = CustomExplainer(model, tokenizer)
|
| 11 |
sentence = "Il paziente non mostra alcun segno di [entità]."
|
| 12 |
|
|
|
|
| 5 |
import numpy as np
|
| 6 |
|
| 7 |
checkpoint = "Detsutut/medbit-assertion-negation"
|
| 8 |
+
model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=3)
|
| 9 |
+
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
| 10 |
cls_explainer = CustomExplainer(model, tokenizer)
|
| 11 |
sentence = "Il paziente non mostra alcun segno di [entità]."
|
| 12 |
|