Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def load_dicts():
|
|
18 |
def load_model():
|
19 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract")
|
20 |
model = AutoModelForSequenceClassification.from_pretrained(
|
21 |
-
"
|
22 |
num_labels=len(label2ind),
|
23 |
problem_type="single_label_classification",
|
24 |
)
|
|
|
18 |
def load_model():
|
19 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract")
|
20 |
model = AutoModelForSequenceClassification.from_pretrained(
|
21 |
+
"checkpoint-23000",
|
22 |
num_labels=len(label2ind),
|
23 |
problem_type="single_label_classification",
|
24 |
)
|