Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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))
|