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