Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
| 36 |
for image in image_byte:
|
| 37 |
text = image_to_text(image)
|
| 38 |
-
|
| 39 |
-
print('This is the text from single PDF: ',
|
| 40 |
-
all_texts.append(
|
| 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 |
|