Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,7 @@ def pdf_to_text(path, start_page=1, end_page=None):
|
|
42 |
#
|
43 |
text_len = text_len + word_count0(text)
|
44 |
doc.close()
|
|
|
45 |
if(text_len>10):
|
46 |
pdf_parse_status = 0
|
47 |
return [], pdf_parse_status
|
|
|
42 |
#
|
43 |
text_len = text_len + word_count0(text)
|
44 |
doc.close()
|
45 |
+
print(text_len)
|
46 |
if(text_len>10):
|
47 |
pdf_parse_status = 0
|
48 |
return [], pdf_parse_status
|