acharyaaditya26 commited on
Commit
e76c9d1
·
verified ·
1 Parent(s): 82adbca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def run_GOT(pdf_file):
98
 
99
  results.append({
100
  "page_number": i + 1,
101
- "text": res,
102
  "html": formatted_html_content
103
  })
104
 
 
98
 
99
  results.append({
100
  "page_number": i + 1,
101
+ "text": res.replace('\n', ' '), # Remove newlines from the text
102
  "html": formatted_html_content
103
  })
104