|
import streamlit as st |
|
|
|
st.set_page_config( |
|
page_title="P&ID Object Detection ", |
|
layout="wide", |
|
initial_sidebar_state="expanded" |
|
) |
|
|
|
st.title('P&ID Object Detection App') |
|
st.subheader(' Deep learning model able to identify valves and pumps', divider='rainbow') |
|
st.caption('Developed by Deep Drawings Co.') |
|
|
|
st.write('##') |
|
|
|
col1, col2, col3 = st.columns([10, 10, 10]) |
|
with col1: |
|
with st.expander("Usage"): |
|
st.markdown( |
|
''' |
|
1. Upload your P&ID or Select Test Diagrams |
|
2. Set Confidence Threshold |
|
3. Press to Perform Inference π |
|
4. Visualize Model Predictions |
|
''' |
|
) |
|
|
|
st.write('##') |
|
|
|
col1, col2, col3 = st.columns([10, 10, 10]) |
|
with col1: |
|
st.markdown(f"##### Upload your File:") |
|
|
|
|
|
image_file = st.file_uploader( |
|
"Upload your diagram:", type=["pdf"] |
|
) |