xtlyxt commited on
Commit
04852bd
·
verified ·
1 Parent(s): 61dc048

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -40,9 +40,13 @@ if uploaded_images:
40
  selected_images.append(image)
41
  selected_file_names.append(img.name)
42
 
 
 
 
 
43
  if st.button("Predict Emotions") and selected_images:
44
  emotions = []
45
- results = [] # Define results list to store prediction results, add for DataFrame button
46
 
47
  if len(selected_images) == 2:
48
  # Predict emotion for each selected image using the pipeline
 
40
  selected_images.append(image)
41
  selected_file_names.append(img.name)
42
 
43
+ # Define results list to store prediction results
44
+ results = []
45
+
46
+
47
  if st.button("Predict Emotions") and selected_images:
48
  emotions = []
49
+ #results = [] # Define results list to store prediction results, add for DataFrame button
50
 
51
  if len(selected_images) == 2:
52
  # Predict emotion for each selected image using the pipeline