hplisiecki commited on
Commit
38e867d
1 Parent(s): bae0f76

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -40,8 +40,8 @@ from word2affect_spanish.model_script import CustomModel # importing the custom
40
  from transformers import PreTrainedTokenizerFast
41
 
42
  model_directory = "word2affect_spanish" # path to the cloned repository
43
- model = CustomModel.from_pretrained('word2affect_spanish')
44
- tokenizer = PreTrainedTokenizerFast.from_pretrained('word2affect_spanish')
45
  inputs = tokenizer("This is a test input.", return_tensors="pt")
46
  outputs = model(inputs['input_ids'], inputs['attention_mask'])
47
 
 
40
  from transformers import PreTrainedTokenizerFast
41
 
42
  model_directory = "word2affect_spanish" # path to the cloned repository
43
+ model = CustomModel.from_pretrained(model_directory)
44
+ tokenizer = PreTrainedTokenizerFast.from_pretrained(model_directory)
45
  inputs = tokenizer("This is a test input.", return_tensors="pt")
46
  outputs = model(inputs['input_ids'], inputs['attention_mask'])
47