Spaces:
Sleeping
Sleeping
Daniel Cerda Escobar
commited on
Commit
Β·
0715e8c
1
Parent(s):
881bd74
Update app file
Browse files
app.py
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
st.set_page_config(
|
4 |
page_title="P&ID Object Detection ",
|
@@ -10,11 +23,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 col2:
|
17 |
-
with st.expander('
|
18 |
st.markdown(
|
19 |
'''
|
20 |
1) Upload your P&ID or Select Test Diagrams π¬
|
@@ -22,7 +33,17 @@ with col2:
|
|
22 |
3) Press to Perform Inference π
|
23 |
4) Visualize Model Predictions π
|
24 |
'''
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
st.write('##')
|
28 |
|
|
|
1 |
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
data_df = pd.DataFrame(
|
5 |
+
{
|
6 |
+
"apps": [
|
7 |
+
"https://storage.googleapis.com/s4a-prod-share-preview/default/st_app_screenshot_image/5435b8cb-6c6c-490b-9608-799b543655d3/Home_Page.png",
|
8 |
+
"https://storage.googleapis.com/s4a-prod-share-preview/default/st_app_screenshot_image/ef9a7627-13f2-47e5-8f65-3f69bb38a5c2/Home_Page.png",
|
9 |
+
"https://storage.googleapis.com/s4a-prod-share-preview/default/st_app_screenshot_image/31b99099-8eae-4ff8-aa89-042895ed3843/Home_Page.png",
|
10 |
+
"https://storage.googleapis.com/s4a-prod-share-preview/default/st_app_screenshot_image/6a399b09-241e-4ae7-a31f-7640dc1d181e/Home_Page.png",
|
11 |
+
],
|
12 |
+
}
|
13 |
+
)
|
14 |
+
|
15 |
|
16 |
st.set_page_config(
|
17 |
page_title="P&ID Object Detection ",
|
|
|
23 |
st.subheader(' Identify valves and pumps with deep learning model', divider='rainbow')
|
24 |
st.caption('Developed by Deep Drawings Co.')
|
25 |
|
|
|
|
|
26 |
col1, col2, col3 = st.columns([10, 10, 10])
|
27 |
with col2:
|
28 |
+
with st.expander('How to use it'):
|
29 |
st.markdown(
|
30 |
'''
|
31 |
1) Upload your P&ID or Select Test Diagrams π¬
|
|
|
33 |
3) Press to Perform Inference π
|
34 |
4) Visualize Model Predictions π
|
35 |
'''
|
36 |
+
)
|
37 |
+
|
38 |
+
st.data_editor(
|
39 |
+
data_df,
|
40 |
+
column_config={
|
41 |
+
"apps": st.column_config.ImageColumn(
|
42 |
+
"Preview Image", help="Streamlit app preview screenshots"
|
43 |
+
)
|
44 |
+
},
|
45 |
+
hide_index=True,
|
46 |
+
)
|
47 |
|
48 |
st.write('##')
|
49 |
|