Aqdas commited on
Commit
9dbdf20
·
verified ·
1 Parent(s): f2952c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -32,12 +32,12 @@ if uploaded_files:
32
  for image_byte in image_bytes:
33
  print('This is image_byte: ', image_byte)
34
 
35
- text = ''
36
  for image in image_byte:
37
  text = image_to_text(image)
38
- text += text
39
- print('This is the text from single PDF: ', text)
40
- all_texts.append(text)
41
 
42
  empty_df = pd.DataFrame()
43
 
 
32
  for image_byte in image_bytes:
33
  print('This is image_byte: ', image_byte)
34
 
35
+ combine_text = ''
36
  for image in image_byte:
37
  text = image_to_text(image)
38
+ combine_text += text
39
+ print('This is the text from single PDF: ', combine_text)
40
+ all_texts.append(combine_text)
41
 
42
  empty_df = pd.DataFrame()
43