Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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='
|
| 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))
|