Kushwanth Chowday Kandala commited on
Commit
a987567
1 Parent(s): f06193e

concatenates_text bytes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -148,7 +148,7 @@ def combine_text(pages):
148
  for page in tqdm(pages):
149
  text = page.extract_text().strip()
150
  concatenates_text += text
151
- bytesize = bytes(text, "utf-8")
152
  p = math.pow(1024, 2)
153
  mbsize = round(bytesize / p, 2)
154
  st.write(f"There are {len(concatenates_text)} characters in the pdf with {mbsize}MB size")
 
148
  for page in tqdm(pages):
149
  text = page.extract_text().strip()
150
  concatenates_text += text
151
+ bytesize = bytes(concatenates_text, "utf-8")
152
  p = math.pow(1024, 2)
153
  mbsize = round(bytesize / p, 2)
154
  st.write(f"There are {len(concatenates_text)} characters in the pdf with {mbsize}MB size")