prithivMLmods commited on
Commit
f515ec3
·
verified ·
1 Parent(s): c59a27f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -249,6 +249,7 @@ def generate_video(model_name: str, text: str, video_path: str,
249
 
250
  # Define examples for image and video inference
251
  image_examples = [
 
252
  ["Convert this page to doc [table] precisely for markdown.", "images/0.png"],
253
  ["Perform OCR on the Image.", "images/1.jpg"],
254
  ["Extract the table content", "images/2.png"]
@@ -305,10 +306,10 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
305
 
306
  with gr.Column():
307
  with gr.Column(elem_classes="canvas-output"):
308
- gr.Markdown("## Result.Md")
309
  output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=2)
310
  #format[ft.md]
311
- with gr.Accordion("Formatted Result (Result.md)", open=False):
312
  markdown_output = gr.Markdown(label="Formatted Result (Result.Md)")
313
  model_choice = gr.Radio(
314
  choices=["Nanonets-OCR-s", "MonkeyOCR-3B-0709", "Qwen2-VL-OCR", "RolmOCR-7B", "Aya-Vision-8B"],
 
249
 
250
  # Define examples for image and video inference
251
  image_examples = [
252
+ ["Extract the content", "images/4.png"]
253
  ["Convert this page to doc [table] precisely for markdown.", "images/0.png"],
254
  ["Perform OCR on the Image.", "images/1.jpg"],
255
  ["Extract the table content", "images/2.png"]
 
306
 
307
  with gr.Column():
308
  with gr.Column(elem_classes="canvas-output"):
309
+ gr.Markdown("## Output")
310
  output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=2)
311
  #format[ft.md]
312
+ with gr.Accordion("(Result.md)", open=False):
313
  markdown_output = gr.Markdown(label="Formatted Result (Result.Md)")
314
  model_choice = gr.Radio(
315
  choices=["Nanonets-OCR-s", "MonkeyOCR-3B-0709", "Qwen2-VL-OCR", "RolmOCR-7B", "Aya-Vision-8B"],