Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,9 +30,14 @@ if uploaded_files:
|
|
| 30 |
|
| 31 |
all_texts = []
|
| 32 |
for image_byte in image_bytes:
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|