Daniel Cerda Escobar commited on
Commit
b74b370
·
1 Parent(s): ca0a72f
Files changed (1) hide show
  1. app.py +11 -17
app.py CHANGED
@@ -173,22 +173,16 @@ with col2:
173
  with tab2:
174
  st.image(st.session_state["output_2"])
175
  with tab3:
176
- st.dataframe(
177
- coco_df,
178
- column_config = {
179
- 'category' : 'Category',
180
- 'score' : 'Confidence',
181
- },
182
- hide_index = True,
183
- )
184
- st.dataframe(
185
- output_df,
186
- column_config = {
187
- 'category' : 'Category',
188
- 'count' : 'Number of Elements',
189
- 'percentage' : '%',
190
- },
191
- hide_index = True,
192
- )
193
 
194
 
 
173
  with tab2:
174
  st.image(st.session_state["output_2"])
175
  with tab3:
176
+ col1,col2,col3 = st.columns([1,2,1])
177
+ with col2:
178
+ st.dataframe(
179
+ output_df.style.hide_columns('percentage'),
180
+ column_config = {
181
+ 'category' : 'Category',
182
+ 'count' : 'Number of Elements',
183
+ },
184
+ use_container_width = True,
185
+ hide_index = True,
186
+ )
 
 
 
 
 
 
187
 
188