Spaces:
Runtime error
Runtime error
Commit
·
8857191
1
Parent(s):
04a9dca
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,6 @@ from transformers import pipeline
|
|
3 |
pipe = pipeline('sentiment-analysis')
|
4 |
query = st.text_area('enter some text - It will return the sentiment of the entered text Negative/Positive :')
|
5 |
button = st.button('Submit', key='button')
|
6 |
-
out = 'sentiment result'
|
7 |
if button:
|
8 |
out = pipe(query)
|
9 |
-
|
10 |
-
out = pipe(query)
|
11 |
-
st.write(out[0].label)
|
12 |
-
st.json(out)
|
|
|
3 |
pipe = pipeline('sentiment-analysis')
|
4 |
query = st.text_area('enter some text - It will return the sentiment of the entered text Negative/Positive :')
|
5 |
button = st.button('Submit', key='button')
|
|
|
6 |
if button:
|
7 |
out = pipe(query)
|
8 |
+
st.json(out)
|
|
|
|
|
|