Spaces:
Running on Zero
Running on Zero
Make textbox components compatible with gradio 5.49.1
Browse files
app.py
CHANGED
|
@@ -1484,7 +1484,7 @@ with gr.Blocks(title="DeepSeek-OCR-2") as demo:
|
|
| 1484 |
with gr.Column(scale=1):
|
| 1485 |
with gr.Tabs() as tabs:
|
| 1486 |
with gr.Tab("Text", id="tab_text"):
|
| 1487 |
-
text_out = gr.Textbox(lines=20,
|
| 1488 |
with gr.Tab("Markdown Preview", id="tab_markdown"):
|
| 1489 |
md_out = gr.HTML("")
|
| 1490 |
with gr.Tab("Boxes", id="tab_boxes"):
|
|
@@ -1492,7 +1492,7 @@ with gr.Blocks(title="DeepSeek-OCR-2") as demo:
|
|
| 1492 |
with gr.Tab("Cropped Images", id="tab_crops"):
|
| 1493 |
gallery = gr.Gallery(show_label=False, columns=3, height=420, object_fit="contain")
|
| 1494 |
with gr.Tab("Raw Text", id="tab_raw"):
|
| 1495 |
-
raw_out = gr.Textbox(lines=20,
|
| 1496 |
download_btn = gr.DownloadButton("Download Markdown", visible=False, variant="secondary")
|
| 1497 |
|
| 1498 |
gr.Markdown("### Examples")
|
|
|
|
| 1484 |
with gr.Column(scale=1):
|
| 1485 |
with gr.Tabs() as tabs:
|
| 1486 |
with gr.Tab("Text", id="tab_text"):
|
| 1487 |
+
text_out = gr.Textbox(lines=20, show_label=False)
|
| 1488 |
with gr.Tab("Markdown Preview", id="tab_markdown"):
|
| 1489 |
md_out = gr.HTML("")
|
| 1490 |
with gr.Tab("Boxes", id="tab_boxes"):
|
|
|
|
| 1492 |
with gr.Tab("Cropped Images", id="tab_crops"):
|
| 1493 |
gallery = gr.Gallery(show_label=False, columns=3, height=420, object_fit="contain")
|
| 1494 |
with gr.Tab("Raw Text", id="tab_raw"):
|
| 1495 |
+
raw_out = gr.Textbox(lines=20, show_label=False)
|
| 1496 |
download_btn = gr.DownloadButton("Download Markdown", visible=False, variant="secondary")
|
| 1497 |
|
| 1498 |
gr.Markdown("### Examples")
|