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