File size: 159 Bytes
8e5a110
 
 
ea7048e
8e5a110
 
ea7048e
8e5a110
1
2
3
4
5
6
7
8
from transformers import pipeline
import torch
import torch.nn.functional as F

classifier = pipeline("sentiment-analysis")
res= classifier("test")

print(res)