Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -263,7 +263,7 @@ css = """
|
|
| 263 |
.canvas-output { border: 2px solid #4682B4; border-radius: 10px; padding: 20px; }
|
| 264 |
"""
|
| 265 |
|
| 266 |
-
with gr.Blocks(css=css) as demo:
|
| 267 |
pdf_state = gr.State(value=get_initial_pdf_state())
|
| 268 |
gr.Markdown("# **Qwen3-VL-Processor**")
|
| 269 |
with gr.Row():
|
|
@@ -289,7 +289,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 289 |
#gr.Examples(examples=pdf_examples, inputs=[pdf_upload])
|
| 290 |
pdf_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 291 |
with gr.Column(scale=1):
|
| 292 |
-
pdf_preview_img = gr.Image(label="PDF Preview", height=
|
| 293 |
with gr.Row():
|
| 294 |
prev_page_btn = gr.Button("◀ Previous")
|
| 295 |
page_info = gr.HTML('<div style="text-align:center;">No file loaded</div>')
|
|
@@ -305,7 +305,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 305 |
with gr.Column(scale=3):
|
| 306 |
with gr.Column(elem_classes="canvas-output"):
|
| 307 |
gr.Markdown("## Output")
|
| 308 |
-
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=
|
| 309 |
with gr.Accordion("(Result.md)", open=False):
|
| 310 |
markdown_output = gr.Markdown(label="(Result.Md)")
|
| 311 |
|
|
|
|
| 263 |
.canvas-output { border: 2px solid #4682B4; border-radius: 10px; padding: 20px; }
|
| 264 |
"""
|
| 265 |
|
| 266 |
+
with gr.Blocks(css=css, theme="Respair/Shiki@9.1.0") as demo:
|
| 267 |
pdf_state = gr.State(value=get_initial_pdf_state())
|
| 268 |
gr.Markdown("# **Qwen3-VL-Processor**")
|
| 269 |
with gr.Row():
|
|
|
|
| 289 |
#gr.Examples(examples=pdf_examples, inputs=[pdf_upload])
|
| 290 |
pdf_submit = gr.Button("Submit", elem_classes="submit-btn")
|
| 291 |
with gr.Column(scale=1):
|
| 292 |
+
pdf_preview_img = gr.Image(label="PDF Preview", height=290)
|
| 293 |
with gr.Row():
|
| 294 |
prev_page_btn = gr.Button("◀ Previous")
|
| 295 |
page_info = gr.HTML('<div style="text-align:center;">No file loaded</div>')
|
|
|
|
| 305 |
with gr.Column(scale=3):
|
| 306 |
with gr.Column(elem_classes="canvas-output"):
|
| 307 |
gr.Markdown("## Output")
|
| 308 |
+
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=14, show_copy_button=True)
|
| 309 |
with gr.Accordion("(Result.md)", open=False):
|
| 310 |
markdown_output = gr.Markdown(label="(Result.Md)")
|
| 311 |
|