nam194 commited on
Commit
44a5c94
1 Parent(s): 769886f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = " ".join(span['text'].split())
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 = span['text'].strip()
104
  if text.replace(" ","") != "":
105
  bboxes.append(normalize_bbox([xmin, ymin, xmax, ymax], image.size))
106
  words.append(decontracted(text))