Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -218,6 +218,8 @@ if button and user_input:
|
|
218 |
instances=instances
|
219 |
)
|
220 |
|
|
|
|
|
221 |
emotion_counts = pd.Series(predictions).value_counts(normalize=True).reset_index()
|
222 |
emotion_counts.columns = ['Emotion', 'Percentage']
|
223 |
emotion_counts['Percentage'] *= 100 # Convert to percentage
|
|
|
218 |
instances=instances
|
219 |
)
|
220 |
|
221 |
+
print("predictions ", predictions)
|
222 |
+
|
223 |
emotion_counts = pd.Series(predictions).value_counts(normalize=True).reset_index()
|
224 |
emotion_counts.columns = ['Emotion', 'Percentage']
|
225 |
emotion_counts['Percentage'] *= 100 # Convert to percentage
|