Update app.py
Browse files
app.py
CHANGED
@@ -55,4 +55,7 @@ if Run_Button and input_text:
|
|
55 |
df = pd.DataFrame(output)
|
56 |
st.dataframe(df)
|
57 |
|
58 |
-
# Display
|
|
|
|
|
|
|
|
55 |
df = pd.DataFrame(output)
|
56 |
st.dataframe(df)
|
57 |
|
58 |
+
# Display the sentiment in a more user-friendly format
|
59 |
+
sentiment = output[0]['label']
|
60 |
+
score = output[0]['score']
|
61 |
+
st.write(f"Sentiment: {sentiment} (Score: {score:.2f})"
|