xtlyxt commited on
Commit
61dc048
·
verified ·
1 Parent(s): 3d38f3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -42,6 +42,8 @@ if uploaded_images:
42
 
43
  if st.button("Predict Emotions") and selected_images:
44
  emotions = []
 
 
45
  if len(selected_images) == 2:
46
  # Predict emotion for each selected image using the pipeline
47
  results = [pipe(image) for image in selected_images]
 
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
49
  results = [pipe(image) for image in selected_images]