multimodalart HF Staff commited on
Commit
0e26381
·
verified ·
1 Parent(s): fdd0e55

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -381,13 +381,14 @@ const LQ_PRESETS = __PRESETS__;
381
 
382
  CSS = """
383
  :root { --lq-orange:#ff7a00; --lq-amber:#ffb000; --lq-lime:#c6e600; }
384
- .gradio-container { max-width: 1280px !important; margin: 0 auto !important; }
385
  #lq-schema-store, #lq-preset-store { display: none !important; }
 
386
 
387
  #lq-hero { padding: 6px 2px 2px; margin-bottom: 2px; }
388
  #lq-hero h1 { margin:0; font-size: 1.75rem; font-weight: 800; letter-spacing:-.02em;
389
  color:#e0590a; -webkit-text-fill-color:#e0590a; }
390
- #lq-hero p { margin:.3rem 0 0; color:#8a6a2a; font-size:.95rem; max-width: 72ch; }
391
 
392
  /* schema builder */
393
  #lq-schema-builder { display:block; }
@@ -483,10 +484,10 @@ with gr.Blocks(title="Liquid Image → JSON") as demo:
483
  model_key = gr.Radio(
484
  choices=[("450M · ⚡ fastest", "450M"), ("1.6B · 🎯 most accurate", "1.6B")],
485
  value="1.6B",
486
- label="Model",
487
  )
488
  gr.Markdown("**Extraction schema** — name a field and describe what to pull out")
489
- gr.HTML('<div id="lq-schema-builder"></div>')
490
  schema_store = gr.Textbox(elem_id="lq-schema-store", value="[]")
491
  preset_store = gr.Textbox(elem_id="lq-preset-store", value="")
492
  go = gr.Button("💧 Extract JSON", variant="primary", elem_id="lq-go")
 
381
 
382
  CSS = """
383
  :root { --lq-orange:#ff7a00; --lq-amber:#ffb000; --lq-lime:#c6e600; }
384
+ .gradio-container { max-width: 1280px !important; margin: 0 auto !important; --layout-gap: 20px !important; }
385
  #lq-schema-store, #lq-preset-store { display: none !important; }
386
+ #lq-fields { padding: 0 !important; border: none !important; }
387
 
388
  #lq-hero { padding: 6px 2px 2px; margin-bottom: 2px; }
389
  #lq-hero h1 { margin:0; font-size: 1.75rem; font-weight: 800; letter-spacing:-.02em;
390
  color:#e0590a; -webkit-text-fill-color:#e0590a; }
391
+ #lq-hero p { margin:.3rem 0 0; color:#8a6a2a; font-size:.95rem; white-space:nowrap; }
392
 
393
  /* schema builder */
394
  #lq-schema-builder { display:block; }
 
484
  model_key = gr.Radio(
485
  choices=[("450M · ⚡ fastest", "450M"), ("1.6B · 🎯 most accurate", "1.6B")],
486
  value="1.6B",
487
+ show_label=False,
488
  )
489
  gr.Markdown("**Extraction schema** — name a field and describe what to pull out")
490
+ gr.HTML('<div id="lq-schema-builder"></div>', elem_id="lq-fields")
491
  schema_store = gr.Textbox(elem_id="lq-schema-store", value="[]")
492
  preset_store = gr.Textbox(elem_id="lq-preset-store", value="")
493
  go = gr.Button("💧 Extract JSON", variant="primary", elem_id="lq-go")