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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -80,7 +80,6 @@ if uploaded_file is not None:
80
  # prediction_groups is a list of (word, box) tuples
81
  prediction_groups = pipeline.recognize([read_image])
82
  predictions = prediction_groups[0] # extract text list
83
- tf.keras.backend.clear_session()
84
  predictions = get_distance(predictions)
85
  # Set thresh higher for text further apart
86
  predictions = list(distinguish_rows(predictions, thresh=10))
 
80
  # prediction_groups is a list of (word, box) tuples
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))