Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def read_(file):
|
|
22 |
for page in pdf.pages:
|
23 |
text.append(page.extract_text())
|
24 |
text_str = ' '.join([page for page in text])
|
25 |
-
st.write('Document:', pdf.metadata
|
26 |
st.write('Number of pages:',len(pdf.pages))
|
27 |
pdf.close()
|
28 |
return text_str
|
|
|
22 |
for page in pdf.pages:
|
23 |
text.append(page.extract_text())
|
24 |
text_str = ' '.join([page for page in text])
|
25 |
+
st.write('Document:', pdf.metadata)
|
26 |
st.write('Number of pages:',len(pdf.pages))
|
27 |
pdf.close()
|
28 |
return text_str
|