Chirayu commited on
Commit
2823503
1 Parent(s): 3adba90

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -18,7 +18,7 @@ tokenizer = AutoTokenizer.from_pretrained("Chirayu/mt5-multilingual-sentiment")
18
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
19
  model = model.to(device)
20
 
21
- def get_subject(text, num_beams=2,max_length=512, repetition_penalty=2.5, length_penalty=1, early_stopping=True,top_p=.95, top_k=50, num_return_sequences=1):
22
 
23
  input_ids = tokenizer.encode(
24
  text, return_tensors="pt", add_special_tokens=True
 
18
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
19
  model = model.to(device)
20
 
21
+ def get_sentiment(text, num_beams=2,max_length=512, repetition_penalty=2.5, length_penalty=1, early_stopping=True,top_p=.95, top_k=50, num_return_sequences=1):
22
 
23
  input_ids = tokenizer.encode(
24
  text, return_tensors="pt", add_special_tokens=True