royaljackal commited on
Commit
2b8b966
·
verified ·
1 Parent(s): 2dc8bb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -191,13 +191,14 @@ def update_page_index_visibility(process_mode):
191
  with gr.Blocks() as demo:
192
  gr.Markdown("# PDF and Image Text Summarizer")
193
  gr.Markdown("Upload a PDF file or images to extract and summarize text.")
 
194
 
195
  language = gr.Radio(choices=["rus", "eng"], label="Select Language", value="rus")
196
 
197
  with gr.Tabs():
198
  with gr.TabItem("PDF"):
199
  pdf_file = gr.File(label="Upload PDF File", type="binary")
200
- process_mode = gr.Radio(choices=["single", "all"], label="Process Mode", value="all")
201
  page_index = gr.Number(label="Page Index", value=0, precision=0)
202
  pdf_output = gr.Textbox(label="Extracted Text")
203
  pdf_button = gr.Button("Extract Text from PDF")
 
191
  with gr.Blocks() as demo:
192
  gr.Markdown("# PDF and Image Text Summarizer")
193
  gr.Markdown("Upload a PDF file or images to extract and summarize text.")
194
+ gr.Markdown("Takes about 10 minutes per page.")
195
 
196
  language = gr.Radio(choices=["rus", "eng"], label="Select Language", value="rus")
197
 
198
  with gr.Tabs():
199
  with gr.TabItem("PDF"):
200
  pdf_file = gr.File(label="Upload PDF File", type="binary")
201
+ process_mode = gr.Radio(choices=["single", "all"], label="Process Mode", value="single")
202
  page_index = gr.Number(label="Page Index", value=0, precision=0)
203
  pdf_output = gr.Textbox(label="Extracted Text")
204
  pdf_button = gr.Button("Extract Text from PDF")