Surendradjh's picture
Update app.py
435d792 verified
raw
history blame
267 Bytes
import streamlit as st
import transformers
import torch
from transformers import pipeline
pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-sentiment-latest")
text = st.text_input("Enter your quote here")
if text:
st.write(pipe(text))