Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -107,8 +107,10 @@ def main():
|
|
107 |
# Use the model to predict emotion
|
108 |
try:
|
109 |
result = emotion_classifier(clean_input)
|
|
|
|
|
110 |
emotion = result[0]['label'].lower()
|
111 |
-
|
112 |
st.subheader(f"Emotion Detected: {emotion.capitalize()}")
|
113 |
|
114 |
# Get well-being suggestions based on emotion
|
|
|
107 |
# Use the model to predict emotion
|
108 |
try:
|
109 |
result = emotion_classifier(clean_input)
|
110 |
+
st.write(f"Raw Model Result: {result}") # Debug output to see raw result
|
111 |
+
|
112 |
emotion = result[0]['label'].lower()
|
113 |
+
|
114 |
st.subheader(f"Emotion Detected: {emotion.capitalize()}")
|
115 |
|
116 |
# Get well-being suggestions based on emotion
|