vahidrezanezhad commited on
Commit
ef9e04c
1 Parent(s): 99ca461

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,7 +76,7 @@ def return_num_columns(img):
76
  return num_col
77
 
78
  def return_scaled_image(img, num_col, width_early, model_name):
79
- if model_name == "SBB/eynollah-main-regions-aug-rotation" or "SBB/eynollah-main-regions-aug-scaling" or "SBB/eynollah-main-regions-ensembled":
80
  print('here')
81
  if num_col == 1 and width_early < 1100:
82
  img_w_new = 2000
@@ -130,7 +130,7 @@ def return_scaled_image(img, num_col, width_early, model_name):
130
  img_w_new = width_early
131
  img_h_new = int(img.shape[0] / float(img.shape[1]) * width_early)
132
  img_new = resize_image(img, img_h_new, img_w_new)
133
- elif model_name=="SBB/eynollah-main-regions":
134
  if num_col == 1:
135
  img_w_new = 1000
136
  img_h_new = int(img.shape[0] / float(img.shape[1]) * img_w_new)
 
76
  return num_col
77
 
78
  def return_scaled_image(img, num_col, width_early, model_name):
79
+ if model_name == "SBB/eynollah-main-regions-aug-rotation" or "SBB/eynollah-main-regions-aug-scaling" or "SBB/eynollah-main-regions-ensembled" or "SBB/eynollah-textline":
80
  print('here')
81
  if num_col == 1 and width_early < 1100:
82
  img_w_new = 2000
 
130
  img_w_new = width_early
131
  img_h_new = int(img.shape[0] / float(img.shape[1]) * width_early)
132
  img_new = resize_image(img, img_h_new, img_w_new)
133
+ elif model_name=="SBB/eynollah-main-regions" or "SBB/eynollah-textline_light":
134
  if num_col == 1:
135
  img_w_new = 1000
136
  img_h_new = int(img.shape[0] / float(img.shape[1]) * img_w_new)