Spaces:
Sleeping
Sleeping
Daniel Cerda Escobar
commited on
Commit
·
b8a2af1
1
Parent(s):
d264a95
Upgrade plot
Browse files
app.py
CHANGED
@@ -22,7 +22,15 @@ st.set_page_config(
|
|
22 |
|
23 |
st.title('P&ID Object Detection')
|
24 |
st.subheader(' Identify valves and pumps with deep learning model ', divider='rainbow')
|
25 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
@st.cache_resource(show_spinner=False)
|
28 |
def get_model(postprocess_match_threshold):
|
@@ -201,11 +209,11 @@ with col2:
|
|
201 |
hide_index = True,
|
202 |
)
|
203 |
with tab4:
|
204 |
-
col1,col2,col3 = st.columns([1,
|
205 |
with col2:
|
206 |
chart_data = st.session_state["output_4"]
|
207 |
fig = px.bar(chart_data, x='category', y='count', color='category')
|
208 |
-
fig.update_layout(xaxis_title=None, yaxis_title=None, showlegend=False,yaxis=dict(tick0=0,dtick=1),bargap=0.
|
209 |
-
st.plotly_chart(fig,use_container_width=True, theme=
|
210 |
|
211 |
|
|
|
22 |
|
23 |
st.title('P&ID Object Detection')
|
24 |
st.subheader(' Identify valves and pumps with deep learning model ', divider='rainbow')
|
25 |
+
st.markdown(
|
26 |
+
"""
|
27 |
+
<a href='https://cl.linkedin.com/in/daniel-cerda-escobar' target='_blank'><img src="https://img.icons8.com/fluency/48/000000/linkedin.png" height="30"></a>
|
28 |
+
</p>
|
29 |
+
""",
|
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):
|
|
|
209 |
hide_index = True,
|
210 |
)
|
211 |
with tab4:
|
212 |
+
col1,col2,col3 = st.columns([1,5,1])
|
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 |
|