xtlyxt commited on
Commit
31d5f11
·
verified ·
1 Parent(s): a6c4560

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
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
- 'Neutral': 0,
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: