Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -206,7 +206,7 @@ def convert_file(
|
|
| 206 |
return preview, result, rendered, status
|
| 207 |
|
| 208 |
|
| 209 |
-
with gr.Blocks(
|
| 210 |
gr.Markdown(
|
| 211 |
"""
|
| 212 |
# 📄 Indra OCR
|
|
@@ -260,8 +260,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 260 |
label="Result",
|
| 261 |
lines=20,
|
| 262 |
max_lines=45,
|
| 263 |
-
|
| 264 |
-
text_align="left",
|
| 265 |
)
|
| 266 |
with gr.Tab("Rendered markdown"):
|
| 267 |
rendered_out = gr.Markdown(label="Rendered markdown", value="")
|
|
@@ -299,4 +298,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 299 |
label="Example documents (the OmniParseBench pages used in the model card)",
|
| 300 |
)
|
| 301 |
|
| 302 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 206 |
return preview, result, rendered, status
|
| 207 |
|
| 208 |
|
| 209 |
+
with gr.Blocks() as demo:
|
| 210 |
gr.Markdown(
|
| 211 |
"""
|
| 212 |
# 📄 Indra OCR
|
|
|
|
| 260 |
label="Result",
|
| 261 |
lines=20,
|
| 262 |
max_lines=45,
|
| 263 |
+
buttons=["copy"],
|
|
|
|
| 264 |
)
|
| 265 |
with gr.Tab("Rendered markdown"):
|
| 266 |
rendered_out = gr.Markdown(label="Rendered markdown", value="")
|
|
|
|
| 298 |
label="Example documents (the OmniParseBench pages used in the model card)",
|
| 299 |
)
|
| 300 |
|
| 301 |
+
demo.launch(mcp_server=True, theme=gr.themes.Citrus(), css=CSS)
|