Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,4 +7,4 @@ 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(inp))
|
|
|
|
| 7 |
pipe=pipeline(task='text-classification',model='cardiffnlp/twitter-roberta-base-sentiment-latest')
|
| 8 |
|
| 9 |
if(inp and btn):
|
| 10 |
+
st.write(pipe(inp)[0]['label'])
|