Spaces:
Runtime error
Runtime error
Ariel Hsieh
commited on
update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ if st.button("Run Sentiment Analysis of Text"):
|
|
12 |
result = sentiment_pipeline(data)
|
13 |
label = result[0]["label"]
|
14 |
score = result[0]["score"]
|
15 |
-
st.write("The classification of the given text is " + label + " with a score of " + score)
|
16 |
|
17 |
|
18 |
|
|
|
12 |
result = sentiment_pipeline(data)
|
13 |
label = result[0]["label"]
|
14 |
score = result[0]["score"]
|
15 |
+
st.write("The classification of the given text is " + label + " with a score of " + str(score))
|
16 |
|
17 |
|
18 |
|