Spaces:
Runtime error
Runtime error
Commit ·
d366fc9
1
Parent(s): 3477695
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,5 +4,5 @@ from transformers import pipeline
|
|
| 4 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
| 5 |
text=st.text_area("Enter text :")
|
| 6 |
if text:
|
| 7 |
-
out=
|
| 8 |
st.json(out)
|
|
|
|
| 4 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
| 5 |
text=st.text_area("Enter text :")
|
| 6 |
if text:
|
| 7 |
+
out=sentiment_pipeline(text)
|
| 8 |
st.json(out)
|