Nikhitha2310 commited on
Commit
ed4b0b3
·
verified ·
1 Parent(s): 71a76a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import streamlit as st
4
  from transformers import pipeline
5
  inp=st.text_input("Enter the text")
6
  btn=st.button("Submit")
7
- pipe=pipeline(task='text_classification',model='cardiffnlp/twitter-roberta-base-sentiment-latest')
8
 
9
  if(inp and btn):
10
  st.write(pipe(text))
 
4
  from transformers import pipeline
5
  inp=st.text_input("Enter the text")
6
  btn=st.button("Submit")
7
+ pipe=pipeline(task='text-classification',model='cardiffnlp/twitter-roberta-base-sentiment-latest')
8
 
9
  if(inp and btn):
10
  st.write(pipe(text))