Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def pred_resume(pdf_path) -> dict:
|
|
100 |
for line in block['lines']:
|
101 |
for span in line['spans']:
|
102 |
xmin, ymin, xmax, ymax = [int(i)*DPI for i in list(span['bbox'])]
|
103 |
-
text =
|
104 |
if text.replace(" ","") != "":
|
105 |
bboxes.append(normalize_bbox([xmin, ymin, xmax, ymax], image.size))
|
106 |
words.append(decontracted(text))
|
|
|
100 |
for line in block['lines']:
|
101 |
for span in line['spans']:
|
102 |
xmin, ymin, xmax, ymax = [int(i)*DPI for i in list(span['bbox'])]
|
103 |
+
text = " ".join(span['text'].split())
|
104 |
if text.replace(" ","") != "":
|
105 |
bboxes.append(normalize_bbox([xmin, ymin, xmax, ymax], image.size))
|
106 |
words.append(decontracted(text))
|