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