Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,9 +50,9 @@ def main():
|
|
| 50 |
page_text = page.extract_text() or ""
|
| 51 |
text += page_text
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
processing_time = time.time() - start_time
|
| 58 |
logging.info(f"Total PDF processing time: {processing_time} seconds")
|
|
|
|
| 50 |
page_text = page.extract_text() or ""
|
| 51 |
text += page_text
|
| 52 |
|
| 53 |
+
if not text:
|
| 54 |
+
st.write("No text could be extracted from the PDFs.")
|
| 55 |
+
return
|
| 56 |
|
| 57 |
processing_time = time.time() - start_time
|
| 58 |
logging.info(f"Total PDF processing time: {processing_time} seconds")
|