PirateXX commited on
Commit
5f78e9a
·
1 Parent(s): c43109e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -101,6 +101,7 @@ def upload_file(file):
101
  text+=(page.extract_text(x_tolerance = 1))
102
  if cnt>5:
103
  break
 
104
  return findRealProb(text)
105
  else:
106
  return {"error":'No PDF file found in request'}
 
101
  text+=(page.extract_text(x_tolerance = 1))
102
  if cnt>5:
103
  break
104
+ text = text.replace('\n', ' ')
105
  return findRealProb(text)
106
  else:
107
  return {"error":'No PDF file found in request'}