ethanrom commited on
Commit
397c146
·
1 Parent(s): 6848b54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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', 'Image Thresholding, Denoising, Binarization, and Skew Correction', 'Adaptive Thresholding, Morphological Operations, and Connected Component Analysis'])
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')