felix.wf commited on
Commit
1ef319c
·
1 Parent(s): 033540b
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -134,19 +134,14 @@ if file_name is not None:
134
 
135
  # plt.show()
136
  # Use Streamlit columns to display the images and pie chart side by side
137
- row1, row2, row3, row4 = st.rows(4)
138
 
139
- with row1:
140
- st.pyplot(fig) # Display the stitched person images
141
 
142
- with row2:
143
- st.pyplot(pie_fig) # Display the pie chart
144
 
145
- with row3:
146
- st.pyplot(bar_fig) # Display the bar chart
147
 
148
- with row4:
149
- st.pyplot(bar_fig_emotions) # Display the bar chart
150
 
151
  elif file_name.type.startswith('video'):
152
  # Save the uploaded video to a temporary file
 
134
 
135
  # plt.show()
136
  # Use Streamlit columns to display the images and pie chart side by side
 
137
 
138
+ st.pyplot(fig) # Display the stitched person images
 
139
 
140
+ st.pyplot(pie_fig) # Display the pie chart
 
141
 
142
+ st.pyplot(bar_fig) # Display the bar chart
 
143
 
144
+ st.pyplot(bar_fig_emotions) # Display the bar chart
 
145
 
146
  elif file_name.type.startswith('video'):
147
  # Save the uploaded video to a temporary file