xtlyxt commited on
Commit
059d006
·
verified ·
1 Parent(s): 90c3057

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,11 +35,11 @@ if st.button("Predict Emotions") and uploaded_images:
35
  col.write(f"Original File Name: {file_names[i]}") # Display original file name
36
 
37
  # Display the keys and values of all results
38
- st.write("Keys and Values of all results:")
39
  col1, col2 = st.columns(2)
40
  for i, result in enumerate(results):
41
  col = col1 if i == 0 else col2
42
- col.write(f"Keys and Values of results[{i}]:")
43
  for res in result:
44
  label = res["label"]
45
  score = res["score"]
 
35
  col.write(f"Original File Name: {file_names[i]}") # Display original file name
36
 
37
  # Display the keys and values of all results
38
+ st.write("Emotion Score Summary :")
39
  col1, col2 = st.columns(2)
40
  for i, result in enumerate(results):
41
  col = col1 if i == 0 else col2
42
+ col.write(f"results for #[{i+1}] image")
43
  for res in result:
44
  label = res["label"]
45
  score = res["score"]