vahidrezanezhad commited on
Commit
df00d38
1 Parent(s): 78e2e14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -80,8 +80,7 @@ def return_num_columns(img):
80
  return num_col
81
 
82
  def return_scaled_image(img, num_col, width_early, model_name):
83
- if model_name == "SBB/eynollah-enhancement" or "SBB/eynollah-main-regions-aug-rotation" or "SBB/eynollah-main-regions-aug-scaling" or
84
- "SBB/eynollah-main-regions-ensembled" or "SBB/eynollah-textline" or "SBB/eynollah-binarization":
85
  if num_col == 1 and width_early < 1100:
86
  img_w_new = 2000
87
  img_h_new = int(img.shape[0] / float(img.shape[1]) * 2000)
 
80
  return num_col
81
 
82
  def return_scaled_image(img, num_col, width_early, model_name):
83
+ if model_name == "SBB/eynollah-enhancement" or "SBB/eynollah-main-regions-aug-rotation" or "SBB/eynollah-main-regions-aug-scaling" or "SBB/eynollah-main-regions-ensembled" or "SBB/eynollah-textline" or "SBB/eynollah-binarization":
 
84
  if num_col == 1 and width_early < 1100:
85
  img_w_new = 2000
86
  img_h_new = int(img.shape[0] / float(img.shape[1]) * 2000)