Daniel Cerda Escobar commited on
Commit
6494a0c
Β·
1 Parent(s): 8c0dd07

Update app file

Browse files
Files changed (1) hide show
  1. app.py +8 -9
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, col4 = st.columns(4)
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(4, gap='medium')
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' : 'Factory P&ID',
46
- 'plant_pid.png' : 'Plant P&ID',
47
- 'processing_pid.png' : 'Processing P&ID',
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')