tarrasyed19472007 commited on
Commit
13edd9b
·
verified ·
1 Parent(s): 112c544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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