Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,9 @@ def main():
|
|
| 13 |
uploaded_file = st.file_uploader('Upload the image file (PNG or JPG)', type=['png', 'jpg'], help='help')
|
| 14 |
input_file = st.file_uploader('Upload the input file (TXT)', type=['txt'], help='help')
|
| 15 |
ocre = st.selectbox('OCR Engine', ['Hive', 'Tesseract'])
|
| 16 |
-
img_processing = st.selectbox('Image preprocessing', ['Gray Scaling', '
|
| 17 |
-
|
|
|
|
| 18 |
if st.button('Find Order ID') and uploaded_file and input_file:
|
| 19 |
st.write('## Output')
|
| 20 |
model = tf.keras.models.load_model('model.h5')
|
|
|
|
| 13 |
uploaded_file = st.file_uploader('Upload the image file (PNG or JPG)', type=['png', 'jpg'], help='help')
|
| 14 |
input_file = st.file_uploader('Upload the input file (TXT)', type=['txt'], help='help')
|
| 15 |
ocre = st.selectbox('OCR Engine', ['Hive', 'Tesseract'])
|
| 16 |
+
img_processing = st.selectbox('Image preprocessing', ['Gray Scaling', 'Thresholding, Denoising, Binarization, Skew Correction', 'Adaptive Thresholding, Morphological Operations, CCA'])
|
| 17 |
+
cnn_model = st.selectbox('Neural Network Model', ['CNN-MaxPool-Dense-Dropout', 'BatchNorm-CNN-MaxPool-Dense-Dropout'])
|
| 18 |
+
|
| 19 |
if st.button('Find Order ID') and uploaded_file and input_file:
|
| 20 |
st.write('## Output')
|
| 21 |
model = tf.keras.models.load_model('model.h5')
|