bachpc commited on
Commit
57c5b14
1 Parent(s): c9a52b3

Move st.set_page_config() to the front

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -23,6 +23,9 @@ from paddleocr import PaddleOCR
23
  import postprocess
24
 
25
 
 
 
 
26
  @st.experimental_singleton(ttl=3600)
27
  def load_ocr_instance():
28
  ocr_instance = PaddleOCR(use_angle_cls=False, lang='en', use_gpu=True)
@@ -583,8 +586,7 @@ def cells_to_excel(cells, file_path):
583
 
584
 
585
  def main():
586
-
587
- st.set_page_config(layout='wide')
588
  st.title('Table Extraction Demo')
589
 
590
  filename = st.file_uploader('Upload image', type=['png', 'jpeg', 'jpg'])
 
23
  import postprocess
24
 
25
 
26
+ st.set_page_config(page_title='Table Extraction Demo', layout='wide')
27
+
28
+
29
  @st.experimental_singleton(ttl=3600)
30
  def load_ocr_instance():
31
  ocr_instance = PaddleOCR(use_angle_cls=False, lang='en', use_gpu=True)
 
586
 
587
 
588
  def main():
589
+
 
590
  st.title('Table Extraction Demo')
591
 
592
  filename = st.file_uploader('Upload image', type=['png', 'jpeg', 'jpg'])