jayasuriyaK commited on
Commit
0925337
·
verified ·
1 Parent(s): d09ae65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -81,6 +81,7 @@ if uploaded_file is not None:
81
  prediction_groups = pipeline.recognize([read_image])
82
  predictions = prediction_groups[0] # extract text list
83
  predictions = get_distance(predictions)
 
84
  # Set thresh higher for text further apart
85
  predictions = list(distinguish_rows(predictions, thresh=10))
86
 
 
81
  prediction_groups = pipeline.recognize([read_image])
82
  predictions = prediction_groups[0] # extract text list
83
  predictions = get_distance(predictions)
84
+ del pipeline
85
  # Set thresh higher for text further apart
86
  predictions = list(distinguish_rows(predictions, thresh=10))
87