jayasuriyaK commited on
Commit
abaa990
·
verified ·
1 Parent(s): 887e0c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -78,6 +78,7 @@ if uploaded_file is not None:
78
 
79
  # prediction_groups is a list of (word, box) tuples
80
  prediction_groups = pipeline.recognize([read_image])
 
81
  predictions = prediction_groups[0] # extract text list
82
  predictions = get_distance(predictions)
83
  # Set thresh higher for text further apart
 
78
 
79
  # prediction_groups is a list of (word, box) tuples
80
  prediction_groups = pipeline.recognize([read_image])
81
+ pipeline.reset()
82
  predictions = prediction_groups[0] # extract text list
83
  predictions = get_distance(predictions)
84
  # Set thresh higher for text further apart