electblake commited on
Commit
63f2d65
·
1 Parent(s): 4cf1457

Align output tabs with extraction tasks

Browse files
Files changed (1) hide show
  1. app/gradio.py +4 -4
app/gradio.py CHANGED
@@ -316,15 +316,15 @@ with gr.Blocks(title="NuMarkApp") as demo:
316
  enable_thinking = gr.Checkbox(label="Enable thinking")
317
  run = gr.Button("Extract", variant="primary")
318
  with gr.Column(), gr.Tabs():
319
- with gr.Tab("Markdown preview"):
320
- markdown_preview = gr.Markdown()
321
- with gr.Tab("Markdown text"):
322
  markdown_text = gr.Textbox(
323
  label="Markdown source",
324
  lines=28,
325
  buttons=["copy"],
326
  )
327
- with gr.Tab("Structured output"):
 
 
328
  structured_output = gr.JSON(
329
  label="Structured JSON",
330
  open=True,
 
316
  enable_thinking = gr.Checkbox(label="Enable thinking")
317
  run = gr.Button("Extract", variant="primary")
318
  with gr.Column(), gr.Tabs():
319
+ with gr.Tab("Content"):
 
 
320
  markdown_text = gr.Textbox(
321
  label="Markdown source",
322
  lines=28,
323
  buttons=["copy"],
324
  )
325
+ with gr.Accordion("Markdown preview (optional)", open=False):
326
+ markdown_preview = gr.Markdown()
327
+ with gr.Tab("Structured"):
328
  structured_output = gr.JSON(
329
  label="Structured JSON",
330
  open=True,