Daniel Cerda Escobar commited on
Commit
62438b8
1 Parent(s): b8a2af1

Upgrade plot

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -30,8 +30,6 @@ st.markdown(
30
  unsafe_allow_html=True,
31
  )
32
 
33
- st.write('###')
34
-
35
  @st.cache_resource(show_spinner=False)
36
  def get_model(postprocess_match_threshold):
37
  yolov8_model_path = download_from_hub('DanielCerda/pid_yolov8')
@@ -213,7 +211,7 @@ with col2:
213
  with col2:
214
  chart_data = st.session_state["output_4"]
215
  fig = px.bar(chart_data, x='category', y='count', color='category')
216
- fig.update_layout(xaxis_title=None, yaxis_title=None, showlegend=False,yaxis=dict(tick0=0,dtick=1),bargap=0.25)
217
  st.plotly_chart(fig,use_container_width=True, theme='streamlit' )
218
 
219
 
 
30
  unsafe_allow_html=True,
31
  )
32
 
 
 
33
  @st.cache_resource(show_spinner=False)
34
  def get_model(postprocess_match_threshold):
35
  yolov8_model_path = download_from_hub('DanielCerda/pid_yolov8')
 
211
  with col2:
212
  chart_data = st.session_state["output_4"]
213
  fig = px.bar(chart_data, x='category', y='count', color='category')
214
+ fig.update_layout(xaxis_title=None, yaxis_title=None, showlegend=False,yaxis=dict(tick0=0,dtick=1),bargap=0.5)
215
  st.plotly_chart(fig,use_container_width=True, theme='streamlit' )
216
 
217