kuroiikimono commited on
Commit
e9d73dd
·
verified ·
1 Parent(s): 42a191f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -2,6 +2,16 @@ import streamlit as st
2
  from pypdf import PdfReader, PdfWriter
3
  import io
4
 
 
 
 
 
 
 
 
 
 
 
5
  # ページごとに分割する関数
6
  def split_pdf_by_pages(reader):
7
  total_pages = len(reader.pages)
 
2
  from pypdf import PdfReader, PdfWriter
3
  import io
4
 
5
+
6
+ description = st.empty()
7
+
8
+ description.markdown("""
9
+ If the PDF is more than 100 pages, it cannot be uploaded to Google Translate as is, so split it into an appropriate number of pages.
10
+ The guideline is to keep it within 100 pages and 10MB, and if it exceeds this limit, Google Translate will not translate it.
11
+ To simply split it into 10 pages each:
12
+ Group size (pages per group) == 10
13
+ """, unsafe_allow_html=True)
14
+
15
  # ページごとに分割する関数
16
  def split_pdf_by_pages(reader):
17
  total_pages = len(reader.pages)