Datasets:

Languages:
English
ArXiv:
License:
asahi417 commited on
Commit
606e111
1 Parent(s): 1e81a08

Update readme.py

Browse files
Files changed (1) hide show
  1. readme.py +2 -2
readme.py CHANGED
@@ -82,8 +82,8 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer
82
  def sigmoid(x):
83
  return 1 / (1 + math.exp(-x))
84
 
85
- tokenizer = AutoTokenizer.from_pretrained({model_name})
86
- model = AutoModelForSequenceClassification.from_pretrained({model_name}, problem_type="multi_label_classification")
87
  model.eval()
88
  class_mapping = model.config.id2label
89
 
 
82
  def sigmoid(x):
83
  return 1 / (1 + math.exp(-x))
84
 
85
+ tokenizer = AutoTokenizer.from_pretrained("{model_name}")
86
+ model = AutoModelForSequenceClassification.from_pretrained("{model_name}", problem_type="multi_label_classification")
87
  model.eval()
88
  class_mapping = model.config.id2label
89