Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,7 +198,7 @@ def process_ocr_task(image):
|
|
| 198 |
|
| 199 |
return final_output_text, result_image
|
| 200 |
|
| 201 |
-
with gr.Blocks(
|
| 202 |
gr.Markdown("# **NVIDIA Nemotron Parse OCR**", elem_id="main-title")
|
| 203 |
gr.Markdown("Upload a document image to extract text, tables, and layout structures using NVIDIA's [Nemotron Parse](https://huggingface.co/nvidia/NVIDIA-Nemotron-Parse-v1.1) model.")
|
| 204 |
|
|
@@ -224,4 +224,4 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 224 |
)
|
| 225 |
|
| 226 |
if __name__ == "__main__":
|
| 227 |
-
demo.queue(max_size=30).launch(share=True, mcp_server=True, ssr_mode=False)
|
|
|
|
| 198 |
|
| 199 |
return final_output_text, result_image
|
| 200 |
|
| 201 |
+
with gr.Blocks() as demo:
|
| 202 |
gr.Markdown("# **NVIDIA Nemotron Parse OCR**", elem_id="main-title")
|
| 203 |
gr.Markdown("Upload a document image to extract text, tables, and layout structures using NVIDIA's [Nemotron Parse](https://huggingface.co/nvidia/NVIDIA-Nemotron-Parse-v1.1) model.")
|
| 204 |
|
|
|
|
| 224 |
)
|
| 225 |
|
| 226 |
if __name__ == "__main__":
|
| 227 |
+
demo.queue(max_size=30).launch(css=css, theme=steel_blue_theme, share=True, mcp_server=True, ssr_mode=False)
|