Spaces:
Sleeping
Sleeping
Daniel Cerda Escobar
commited on
Commit
Β·
6494a0c
1
Parent(s):
8c0dd07
Update app file
Browse files
app.py
CHANGED
@@ -20,21 +20,21 @@ st.title('P&ID Object Detection')
|
|
20 |
st.subheader(' Identify valves and pumps with deep learning model ', divider='rainbow')
|
21 |
st.caption('Developed by Deep Drawings Co.')
|
22 |
|
23 |
-
col1, col2, col3
|
24 |
with col1:
|
25 |
with st.expander('How to use it'):
|
26 |
st.markdown(
|
27 |
'''
|
28 |
1) Upload your P&ID or select example diagrams π¬
|
29 |
-
2) Set
|
30 |
-
3) Press to
|
31 |
-
4) Visualize
|
32 |
'''
|
33 |
)
|
34 |
|
35 |
st.write('##')
|
36 |
|
37 |
-
col1, col2, col3, col4 = st.columns(
|
38 |
with col2:
|
39 |
st.markdown('##### Input File')
|
40 |
# set input image by upload
|
@@ -42,9 +42,9 @@ with col2:
|
|
42 |
# set input images from examples
|
43 |
def radio_func(option):
|
44 |
option_to_id = {
|
45 |
-
'factory_pid.png' : '
|
46 |
-
'plant_pid.png' : '
|
47 |
-
'processing_pid.png' : '
|
48 |
}
|
49 |
return option_to_id[option]
|
50 |
st.write('##')
|
@@ -52,7 +52,6 @@ with col2:
|
|
52 |
'Or select from example diagrams',
|
53 |
options = ['factory_pid.png', 'plant_pid.png', 'processing_pid.png'],
|
54 |
format_func = radio_func,
|
55 |
-
#value = 'factory_pid.png',
|
56 |
)
|
57 |
with col3:
|
58 |
st.markdown('##### Preview')
|
|
|
20 |
st.subheader(' Identify valves and pumps with deep learning model ', divider='rainbow')
|
21 |
st.caption('Developed by Deep Drawings Co.')
|
22 |
|
23 |
+
col1, col2, col3 = st.columns(3, gap='large')
|
24 |
with col1:
|
25 |
with st.expander('How to use it'):
|
26 |
st.markdown(
|
27 |
'''
|
28 |
1) Upload your P&ID or select example diagrams π¬
|
29 |
+
2) Set confidence threshold π
|
30 |
+
3) Press to perform inference π
|
31 |
+
4) Visualize model predictions π
|
32 |
'''
|
33 |
)
|
34 |
|
35 |
st.write('##')
|
36 |
|
37 |
+
col1, col2, col3, col4 = st.columns([1, 2, 2, 1], gap='large')
|
38 |
with col2:
|
39 |
st.markdown('##### Input File')
|
40 |
# set input image by upload
|
|
|
42 |
# set input images from examples
|
43 |
def radio_func(option):
|
44 |
option_to_id = {
|
45 |
+
'factory_pid.png' : 'Example NΒ°1',
|
46 |
+
'plant_pid.png' : 'Example NΒ°2',
|
47 |
+
'processing_pid.png' : 'Example NΒ°3',
|
48 |
}
|
49 |
return option_to_id[option]
|
50 |
st.write('##')
|
|
|
52 |
'Or select from example diagrams',
|
53 |
options = ['factory_pid.png', 'plant_pid.png', 'processing_pid.png'],
|
54 |
format_func = radio_func,
|
|
|
55 |
)
|
56 |
with col3:
|
57 |
st.markdown('##### Preview')
|