muk42 commited on
Commit
4cf20fe
·
1 Parent(s): 00fbc1e

handle non zero tiles

Browse files
Files changed (1) hide show
  1. inference_tab/inference_logic.py +2 -0
inference_tab/inference_logic.py CHANGED
@@ -83,6 +83,8 @@ def run_inference(tile_dict, gcp_path,user_crs, city_name, score_th, hist_th, hi
83
  if "No labels detected" in msg:
84
  stop_pipeline = True
85
  break
 
 
86
 
87
  if stop_pipeline:
88
  yield log + "Pipeline stopped: no text segments found.\n", None
 
83
  if "No labels detected" in msg:
84
  stop_pipeline = True
85
  break
86
+ else:
87
+ stop_pipeline=False
88
 
89
  if stop_pipeline:
90
  yield log + "Pipeline stopped: no text segments found.\n", None