xtlyxt commited on
Commit
00440cd
·
verified ·
1 Parent(s): ef16413

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,5 +65,5 @@ if st.button("Predict Emotions") and selected_images:
65
  st.write(f"Emotion Scores for #{i+1} Image")
66
  st.write(f"{predicted_emotion}: {result[0]['score']:.4f}")
67
  # Use the index to get the corresponding filename
68
- reversed_uploaded_images = reversed(uploaded_images)
69
- st.write(f"Original File Name: {list(reversed_uploaded_images)[i].name if i < len(uploaded_images) else 'Unknown'}")
 
65
  st.write(f"Emotion Scores for #{i+1} Image")
66
  st.write(f"{predicted_emotion}: {result[0]['score']:.4f}")
67
  # Use the index to get the corresponding filename
68
+ st.write(f"Original File Name: {uploaded_images[i].name if i < len(uploaded_images) else 'Unknown'}")
69
+