Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,14 +62,21 @@ if st.button("Generate DataFrame"):
|
|
62 |
for i, result_set in enumerate(results):
|
63 |
# Initialize a dictionary for the current set with zeros
|
64 |
current_data = {
|
65 |
-
|
66 |
'Happy': 0,
|
67 |
'Surprise': 0,
|
|
|
|
|
68 |
'Disgust': 0,
|
69 |
'Angry': 0,
|
|
|
|
|
|
|
|
|
70 |
# Add other emotions if necessary
|
71 |
'Image Name': image_names[i],
|
72 |
-
'Image Size (KB)': image_sizes[i]
|
|
|
73 |
}
|
74 |
|
75 |
for result in result_set:
|
|
|
62 |
for i, result_set in enumerate(results):
|
63 |
# Initialize a dictionary for the current set with zeros
|
64 |
current_data = {
|
65 |
+
|
66 |
'Happy': 0,
|
67 |
'Surprise': 0,
|
68 |
+
'Neutral': 0,
|
69 |
+
'Sad': 0,
|
70 |
'Disgust': 0,
|
71 |
'Angry': 0,
|
72 |
+
'Fear': 0,
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
# Add other emotions if necessary
|
77 |
'Image Name': image_names[i],
|
78 |
+
#'Image Size (KB)': image_sizes[i]
|
79 |
+
'Image Size (KB)': f"{image_sizes[i]:.1f}" # Format the size to one decimal place
|
80 |
}
|
81 |
|
82 |
for result in result_set:
|