Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,10 @@ def emotionAnalysis(message, face):
|
|
65 |
face_emotion, face_score = result
|
66 |
else:
|
67 |
face_emotion = "No face detected"
|
|
|
68 |
except Exception as e:
|
69 |
face_emotion = f"Error processing image: {str(e)}"
|
|
|
70 |
|
71 |
# Store facial emotion data for plotting
|
72 |
face_dataDict["Time"].append(face_timestamp)
|
|
|
65 |
face_emotion, face_score = result
|
66 |
else:
|
67 |
face_emotion = "No face detected"
|
68 |
+
face_score = 0.0
|
69 |
except Exception as e:
|
70 |
face_emotion = f"Error processing image: {str(e)}"
|
71 |
+
face_score = 0.0
|
72 |
|
73 |
# Store facial emotion data for plotting
|
74 |
face_dataDict["Time"].append(face_timestamp)
|