Tonic commited on
Commit
829461e
Β·
verified Β·
1 Parent(s): 3b378ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -197,6 +197,7 @@ def cleanup_old_files():
197
  if current_time - file_path.stat().st_mtime > 3600: # 1 hour
198
  file_path.unlink()
199
 
 
200
  with gr.Blocks(theme=gr.themes.Base()) as demo:
201
  with gr.Row():
202
  gr.Markdown(title)
@@ -277,10 +278,9 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
277
 
278
  submit_button.click(
279
  ocr_demo,
280
- inputs=[image_input, task_dropdown, ocr_type_dropdown, ocr_box_input, ocr_color_dropdown],
281
  outputs=[output_markdown, output_html]
282
  )
283
-
284
  editor_submit_button.click(
285
  ocr_demo,
286
  inputs=[image_editor, task_dropdown, ocr_type_dropdown, ocr_box_input, ocr_color_dropdown],
 
197
  if current_time - file_path.stat().st_mtime > 3600: # 1 hour
198
  file_path.unlink()
199
 
200
+
201
  with gr.Blocks(theme=gr.themes.Base()) as demo:
202
  with gr.Row():
203
  gr.Markdown(title)
 
278
 
279
  submit_button.click(
280
  ocr_demo,
281
+ inputs=[image_input, task_dropdown, ocr_type_dropdown, ocr_box_input, ocr_color_dropdown, max_new_tokens_slider, no_repeat_ngram_size_slider],
282
  outputs=[output_markdown, output_html]
283
  )
 
284
  editor_submit_button.click(
285
  ocr_demo,
286
  inputs=[image_editor, task_dropdown, ocr_type_dropdown, ocr_box_input, ocr_color_dropdown],