kuroiikimono commited on
Commit
549d696
·
verified ·
1 Parent(s): 830e164

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -178,7 +178,7 @@ This translation app is useful for people who want to translate something or wan
178
  my_bar1 = progressbar1.progress(0)
179
 
180
  from bs4 import BeautifulSoup
181
- xml_line_blocks = st.empty()
182
  for index, page in enumerate(doc):
183
  #page_text = page.extract_text()
184
  #page_text = page.get_text(sort=True)
@@ -197,7 +197,7 @@ This translation app is useful for people who want to translate something or wan
197
  temp_y_posi = y_posi
198
  page_text2 += tag3.get("c")
199
 
200
- xml_line_blocks.write(page_text2)
201
 
202
  #for index, page in enumerate(doc.pages):
203
  #for index, page in enumerate(doc):
@@ -210,7 +210,7 @@ This translation app is useful for people who want to translate something or wan
210
  my_bar1.progress(done,
211
  text=f"Reading Page Number : {index + 1}")
212
  doc.close()
213
- xml_line_blocks.empty()
214
  st.session_state.book = book
215
  my_bar1.empty()
216
  if os.path.isfile(
 
178
  my_bar1 = progressbar1.progress(0)
179
 
180
  from bs4 import BeautifulSoup
181
+
182
  for index, page in enumerate(doc):
183
  #page_text = page.extract_text()
184
  #page_text = page.get_text(sort=True)
 
197
  temp_y_posi = y_posi
198
  page_text2 += tag3.get("c")
199
 
200
+
201
 
202
  #for index, page in enumerate(doc.pages):
203
  #for index, page in enumerate(doc):
 
210
  my_bar1.progress(done,
211
  text=f"Reading Page Number : {index + 1}")
212
  doc.close()
213
+
214
  st.session_state.book = book
215
  my_bar1.empty()
216
  if os.path.isfile(