Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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]
|