milestone-3 / app.py
nppmatt's picture
Update app.py
8d57fce
raw
history blame
250 Bytes
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)