Aqdas commited on
Commit
51ee97e
·
verified ·
1 Parent(s): d85551f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -30,9 +30,14 @@ if uploaded_files:
30
 
31
  all_texts = []
32
  for image_byte in image_bytes:
33
- text = image_to_text(image_byte)
34
- all_texts.append(text)
35
- print('one text appended')
 
 
 
 
 
36
 
37
  empty_df = pd.DataFrame()
38
 
 
30
 
31
  all_texts = []
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