Spaces:
Runtime error
Runtime error
Commit ·
3a9bb75
1
Parent(s): e474679
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,11 +5,11 @@ pipe = pipeline('sentiment-analysis')
|
|
| 5 |
|
| 6 |
text = st.text_area('Enter some content !')
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
for result in text:
|
| 12 |
-
|
| 13 |
# st.write("Label: ")
|
| 14 |
# st.write(result['label'])
|
| 15 |
# st.write("Score: ")
|
|
|
|
| 5 |
|
| 6 |
text = st.text_area('Enter some content !')
|
| 7 |
|
| 8 |
+
if text:
|
| 9 |
+
out = pipe(text)
|
| 10 |
+
st.json(out)
|
| 11 |
+
# for result in text:
|
| 12 |
+
# st.write(result['label'])
|
| 13 |
# st.write("Label: ")
|
| 14 |
# st.write(result['label'])
|
| 15 |
# st.write("Score: ")
|