File size: 268 Bytes
3aa3370
 
37df66f
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import os
import streamlit as st

from transfomers import pipeline
inp=st.text_input("Enter the text")
btn=st.button("Submit")
pipe=pipeline(task='text_classification',model='cardiffnlp/twitter-roberta-base-sentiment-latest')

if(inp and btn):
    st.write(pipe(text))