File size: 250 Bytes
d0ae0ec
d1e02d2
 
c093cb0
 
e9925e0
 
 
 
8d57fce
1
2
3
4
5
6
7
8
9
10
11
from transformers import pipeline
import torch
import torch.nn.functional as TF
import streamlit as st

classifier = pipeline("sentiment-analysis")
defaultTxt = "I hate you cancerous insects so much"
result = classifier(defaultTxt)

st.write(result)