leonarb commited on
Commit
71a824e
·
verified ·
1 Parent(s): 2ac226e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -80,10 +80,6 @@ def process_pdf_to_epub(pdf_file, title, author):
80
  except Exception as decode_error:
81
  decoded = f"[Decoding error on page {page_num}: {str(decode_error)}]"
82
 
83
-
84
- except Exception as e:
85
- decoded = f"[Error processing page {page_num}: {str(e)}]"
86
-
87
  # Create chapter
88
  chapter = epub.EpubHtml(title=f"Page {page_num}", file_name=f"page_{page_num}.xhtml", lang="en")
89
  chapter.content = f"<h1>Page {page_num}</h1><p>{decoded}</p>"
 
80
  except Exception as decode_error:
81
  decoded = f"[Decoding error on page {page_num}: {str(decode_error)}]"
82
 
 
 
 
 
83
  # Create chapter
84
  chapter = epub.EpubHtml(title=f"Page {page_num}", file_name=f"page_{page_num}.xhtml", lang="en")
85
  chapter.content = f"<h1>Page {page_num}</h1><p>{decoded}</p>"