Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,12 +30,12 @@ if uploaded_files:
|
|
| 30 |
|
| 31 |
all_texts = []
|
| 32 |
for image_byte in image_bytes:
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
|
| 40 |
empty_df = pd.DataFrame()
|
| 41 |
|
|
|
|
| 30 |
|
| 31 |
all_texts = []
|
| 32 |
for image_byte in image_bytes:
|
| 33 |
+
text = ''
|
| 34 |
+
for image in image_byte:
|
| 35 |
+
text = image_to_text(image)
|
| 36 |
+
text += text
|
| 37 |
+
print('This is the text from single PDF: ', text)
|
| 38 |
+
all_texts.append(text)
|
| 39 |
|
| 40 |
empty_df = pd.DataFrame()
|
| 41 |
|