myhloli commited on
Commit
902ad6b
Β·
verified Β·
1 Parent(s): 17a9ec7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -154,14 +154,12 @@ if __name__ == "__main__":
154
  gr.HTML(header)
155
  with gr.Row():
156
  with gr.Column(variant='panel', scale=5):
157
- # file = gr.File(label="Please upload pdf", file_types=[".pdf"])
158
  pdf_show = gr.Markdown()
159
  max_pages = gr.Slider(1, 10, 5, step=1, label="Max convert pages")
160
  with gr.Row() as bu_flow:
161
  is_ocr = gr.Checkbox(label="Force enable OCR")
162
  change_bu = gr.Button("Convert")
163
  clear_bu = gr.ClearButton([pdf_show], value="Clear")
164
- # pdf_show = gr.HTML(label="PDF preview")
165
  pdf_show = PDF(label="Please upload pdf", interactive=True, height=800)
166
  with gr.Accordion("Examples:"):
167
  example_root = os.path.join(os.path.dirname(__file__), "examples")
 
154
  gr.HTML(header)
155
  with gr.Row():
156
  with gr.Column(variant='panel', scale=5):
 
157
  pdf_show = gr.Markdown()
158
  max_pages = gr.Slider(1, 10, 5, step=1, label="Max convert pages")
159
  with gr.Row() as bu_flow:
160
  is_ocr = gr.Checkbox(label="Force enable OCR")
161
  change_bu = gr.Button("Convert")
162
  clear_bu = gr.ClearButton([pdf_show], value="Clear")
 
163
  pdf_show = PDF(label="Please upload pdf", interactive=True, height=800)
164
  with gr.Accordion("Examples:"):
165
  example_root = os.path.join(os.path.dirname(__file__), "examples")