Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,27 @@ def main():
|
|
| 9 |
tabs = st.tabs(["Intro", "find order"])
|
| 10 |
|
| 11 |
with tabs[0]:
|
| 12 |
-
st.
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
with tabs[1]:
|
| 16 |
st.write('## Find Order')
|
|
@@ -20,9 +39,10 @@ def main():
|
|
| 20 |
st.write('## Input')
|
| 21 |
uploaded_file = st.file_uploader('Upload the image file (PNG or JPG)', type=['png', 'jpg'], help='help')
|
| 22 |
input_file = st.file_uploader('Upload the input file (TXT)', type=['txt'], help='help')
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
| 26 |
|
| 27 |
if st.button('Find Order ID') and uploaded_file and input_file:
|
| 28 |
st.write('## Output')
|
|
|
|
| 9 |
tabs = st.tabs(["Intro", "find order"])
|
| 10 |
|
| 11 |
with tabs[0]:
|
| 12 |
+
col1, col2 = st.columns([1, 2])
|
| 13 |
+
with col1:
|
| 14 |
+
st.image("image.jpg", use_column_width=True)
|
| 15 |
+
with col2:
|
| 16 |
+
st.markdown(
|
| 17 |
+
"""
|
| 18 |
+
<h3 style='text-align: center;'>Lorem ipsum dolor sit amet!</h3>
|
| 19 |
+
|
| 20 |
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam hendrerit nisi sed sollicitudin pellentesque.</p>
|
| 21 |
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam hendrerit nisi sed sollicitudin pellentesque.</p>
|
| 22 |
+
""",
|
| 23 |
+
unsafe_allow_html=True)
|
| 24 |
+
st.markdown(
|
| 25 |
+
"""
|
| 26 |
+
<div style='text-align: center;'>
|
| 27 |
+
<h3 style='text-align: center;'>About the demo</h3>
|
| 28 |
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam hendrerit nisi sed sollicitudin pellentesque.</p>
|
| 29 |
+
|
| 30 |
+
</div>
|
| 31 |
+
""",
|
| 32 |
+
unsafe_allow_html=True)
|
| 33 |
|
| 34 |
with tabs[1]:
|
| 35 |
st.write('## Find Order')
|
|
|
|
| 39 |
st.write('## Input')
|
| 40 |
uploaded_file = st.file_uploader('Upload the image file (PNG or JPG)', type=['png', 'jpg'], help='help')
|
| 41 |
input_file = st.file_uploader('Upload the input file (TXT)', type=['txt'], help='help')
|
| 42 |
+
with st.expander('Settings'):
|
| 43 |
+
ocre = st.selectbox('OCR Engine', ['Hive', 'Tesseract'])
|
| 44 |
+
img_processing = st.selectbox('Image preprocessing', ['Gray Scaling', 'Thresholding, Denoising, Binarization, Skew Correction', 'Adaptive Thresholding, Morphological Operations, CCA'])
|
| 45 |
+
cnn_model = st.selectbox('Neural Network Model', ['CNN-MaxPool-Dense-Dropout', 'BatchNorm-CNN-MaxPool-Dense-Dropout'])
|
| 46 |
|
| 47 |
if st.button('Find Order ID') and uploaded_file and input_file:
|
| 48 |
st.write('## Output')
|