Detsutut commited on
Commit
18e08b6
1 Parent(s): 9329025

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, local_files_only=True)
9
- tokenizer = AutoTokenizer.from_pretrained(checkpoint, local_files_only=True)
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