Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,13 @@ def main():
|
|
| 56 |
st.title("Global Customer Sentiment Analyzer")
|
| 57 |
st.write("Analyze customer sentiment in multiple languages including Chinese, Japanese, German, Spanish, and French.")
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
user_input = st.text_input("Enter customer comments in supported languages:")
|
| 60 |
|
| 61 |
# 用户点击分析按钮后触发
|
|
@@ -88,7 +95,7 @@ def main():
|
|
| 88 |
sentiment_text = label_to_text.get(label, "Unrecognized sentiment")
|
| 89 |
|
| 90 |
st.write(f"Sentiment Analysis Result: {sentiment_text}")
|
| 91 |
-
st.write(f"Confidence Score: {confidence:.2f}")
|
| 92 |
|
| 93 |
if __name__ == "__main__":
|
| 94 |
main()
|
|
|
|
| 56 |
st.title("Global Customer Sentiment Analyzer")
|
| 57 |
st.write("Analyze customer sentiment in multiple languages including Chinese, Japanese, German, Spanish, and French.")
|
| 58 |
|
| 59 |
+
st.write("There will be 5 kinds of results. Please take action accordingly when needed.")
|
| 60 |
+
st.write("Very dissatisfied, immediate follow-up is required.")
|
| 61 |
+
st.write("Dissatisfied, please arrange follow-up.")
|
| 62 |
+
st.write("Neutral sentiment, further case analysis is needed.")
|
| 63 |
+
st.write("Satisfied, the customer may return for a purchase.")
|
| 64 |
+
st.write("Very satisfied, the customer is very likely to return and recommend.")
|
| 65 |
+
|
| 66 |
user_input = st.text_input("Enter customer comments in supported languages:")
|
| 67 |
|
| 68 |
# 用户点击分析按钮后触发
|
|
|
|
| 95 |
sentiment_text = label_to_text.get(label, "Unrecognized sentiment")
|
| 96 |
|
| 97 |
st.write(f"Sentiment Analysis Result: {sentiment_text}")
|
| 98 |
+
# st.write(f"Confidence Score: {confidence:.2f}")
|
| 99 |
|
| 100 |
if __name__ == "__main__":
|
| 101 |
main()
|