Khushter-Kaifi commited on
Commit ·
d2c1490
1
Parent(s): 69a2132
Updated App
Browse files
app.py
CHANGED
|
@@ -36,4 +36,4 @@ if user_input:
|
|
| 36 |
#If there is user input, it displays the sentiment and confidence score.
|
| 37 |
# The sentiment is extracted from the "label" field in the result, and the confidence score is extracted from the "score" field.
|
| 38 |
st.write(f"Sentiment: {sentiment}")
|
| 39 |
-
st.write(f"Confidence: {confidence:.
|
|
|
|
| 36 |
#If there is user input, it displays the sentiment and confidence score.
|
| 37 |
# The sentiment is extracted from the "label" field in the result, and the confidence score is extracted from the "score" field.
|
| 38 |
st.write(f"Sentiment: {sentiment}")
|
| 39 |
+
st.write(f"Confidence: {confidence:.2%}")
|