Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -296,6 +296,7 @@ def generate_video(model_name: str, text: str, video_path: str,
|
|
| 296 |
|
| 297 |
# Define examples for image and video inference
|
| 298 |
image_examples = [
|
|
|
|
| 299 |
["OCR the image", "images/2.jpg"],
|
| 300 |
["Convert this page to docling", "images/1.png"],
|
| 301 |
["Convert this page to docling", "images/3.png"],
|
|
@@ -357,7 +358,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 357 |
with gr.Column():
|
| 358 |
# Result Canvas with raw and formatted outputs
|
| 359 |
with gr.Column(elem_classes="canvas-output"):
|
| 360 |
-
gr.Markdown("## Result
|
| 361 |
raw_output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=2)
|
| 362 |
formatted_output = gr.Markdown(label="Formatted Result (Result.Md)")
|
| 363 |
|
|
|
|
| 296 |
|
| 297 |
# Define examples for image and video inference
|
| 298 |
image_examples = [
|
| 299 |
+
["Reconstruct the doc [table] as it is.", "images/0.png"],
|
| 300 |
["OCR the image", "images/2.jpg"],
|
| 301 |
["Convert this page to docling", "images/1.png"],
|
| 302 |
["Convert this page to docling", "images/3.png"],
|
|
|
|
| 358 |
with gr.Column():
|
| 359 |
# Result Canvas with raw and formatted outputs
|
| 360 |
with gr.Column(elem_classes="canvas-output"):
|
| 361 |
+
gr.Markdown("## Result.Md")
|
| 362 |
raw_output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=2)
|
| 363 |
formatted_output = gr.Markdown(label="Formatted Result (Result.Md)")
|
| 364 |
|