Karim-Gamal commited on
Commit
4a78464
1 Parent(s): 77aefab

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -40,7 +40,7 @@ model = AutoModelForSequenceClassification.from_pretrained(model_name)
40
 
41
  # Tokenize the input text
42
  input_text = "This is a fake news article"
43
- inputs = tokenizer.encode_plus(input_text, padding=True, truncation=True, max_length=128, return_tensors="pt")
44
 
45
  # Get the model's prediction
46
  outputs = model(inputs["input_ids"], attention_mask=inputs["attention_mask"])
 
40
 
41
  # Tokenize the input text
42
  input_text = "This is a fake news article"
43
+ inputs = tokenizer.encode_plus(input_text, padding=True, truncation=True, max_length=512, return_tensors="pt")
44
 
45
  # Get the model's prediction
46
  outputs = model(inputs["input_ids"], attention_mask=inputs["attention_mask"])