Spaces:
Sleeping
Sleeping
Daniel Cerda Escobar
commited on
Commit
Β·
96b4bfb
1
Parent(s):
a3cfe41
Update app file
Browse files
app.py
CHANGED
@@ -7,30 +7,37 @@ st.set_page_config(
|
|
7 |
)
|
8 |
|
9 |
st.title('P&ID Object Detection App')
|
10 |
-
st.subheader('
|
11 |
st.caption('Developed by Deep Drawings Co.')
|
12 |
|
13 |
st.write('##')
|
14 |
|
15 |
-
col1, col2, col3 = st.columns([10, 10, 10])
|
16 |
-
with col1:
|
17 |
-
with st.expander("Usage"):
|
18 |
-
st.markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
'''
|
20 |
1. Upload your P&ID or Select Test Diagrams
|
21 |
2. Set Confidence Threshold
|
22 |
3. Press to Perform Inference π
|
23 |
4. Visualize Model Predictions
|
24 |
-
'''
|
25 |
)
|
26 |
|
27 |
-
|
28 |
|
29 |
col1, col2, col3 = st.columns([10, 10, 10])
|
30 |
with col1:
|
31 |
st.markdown(f"##### Upload your File:")
|
32 |
-
|
33 |
# set input image by upload
|
34 |
-
image_file = st.file_uploader(
|
35 |
-
"Upload your diagram:", type=["pdf"]
|
36 |
-
)
|
|
|
7 |
)
|
8 |
|
9 |
st.title('P&ID Object Detection App')
|
10 |
+
st.subheader(' Identify valves and pumps with deep learning model', divider='rainbow')
|
11 |
st.caption('Developed by Deep Drawings Co.')
|
12 |
|
13 |
st.write('##')
|
14 |
|
15 |
+
#col1, col2, col3 = st.columns([10, 10, 10])
|
16 |
+
#with col1:
|
17 |
+
# with st.expander("Usage"):
|
18 |
+
# st.markdown(
|
19 |
+
# '''
|
20 |
+
# 1. Upload your P&ID or Select Test Diagrams
|
21 |
+
# 2. Set Confidence Threshold
|
22 |
+
# 3. Press to Perform Inference π
|
23 |
+
# 4. Visualize Model Predictions
|
24 |
+
# '''
|
25 |
+
# )
|
26 |
+
|
27 |
+
with st.sidebar:
|
28 |
+
st.markdown(
|
29 |
'''
|
30 |
1. Upload your P&ID or Select Test Diagrams
|
31 |
2. Set Confidence Threshold
|
32 |
3. Press to Perform Inference π
|
33 |
4. Visualize Model Predictions
|
34 |
+
'''
|
35 |
)
|
36 |
|
37 |
+
st.write('##')
|
38 |
|
39 |
col1, col2, col3 = st.columns([10, 10, 10])
|
40 |
with col1:
|
41 |
st.markdown(f"##### Upload your File:")
|
|
|
42 |
# set input image by upload
|
43 |
+
image_file = st.file_uploader("Upload your diagram:", type=["pdf"])
|
|
|
|