SharpMeow commited on
Commit
2173951
·
verified ·
1 Parent(s): 71b6533

Compact download box; how-to pictures at reading width

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -498,7 +498,9 @@ CSS = """
498
  .lf-point { flex-wrap: nowrap !important; }
499
  .lf-credit { text-align:center; font-size:13px; color: var(--body-text-color-subdued); padding:18px 0 6px; }
500
  .lf-credit a { color: var(--lf-accent) !important; padding:0 !important; margin:0 !important; }
501
- .lf-howto img { border-radius:10px; border:1px solid var(--border-color-primary); max-width:100%; }
 
 
502
  .lf-howto { max-width: 920px; }
503
  .lf-howto h3 { scroll-margin-top: 16px; margin-top: 1.6em !important; }
504
  .lf-howto em { color: var(--body-text-color-subdued); font-size: 13.5px; }
@@ -635,7 +637,8 @@ def build_demo():
635
  summary = gr.Markdown("Above: what a result looks like (the first example point). Your "
636
  "field replaces it. The first run after the Space wakes up also loads "
637
  "the model (about a minute).")
638
- dl = gr.File(label="Download: villa output folder, field.npz, receipt.json", height=88)
 
639
  with gr.Accordion("Receipt", open=False):
640
  receipt = gr.JSON()
641
  with gr.Accordion("About the model", open=False):
 
498
  .lf-point { flex-wrap: nowrap !important; }
499
  .lf-credit { text-align:center; font-size:13px; color: var(--body-text-color-subdued); padding:18px 0 6px; }
500
  .lf-credit a { color: var(--lf-accent) !important; padding:0 !important; margin:0 !important; }
501
+ .lf-howto img { border-radius:10px; border:1px solid var(--border-color-primary); max-width:min(100%, 760px); display:block; margin:8px 0; }
502
+ #lf-dl .empty { min-height: 64px !important; height: 64px !important; }
503
+ #lf-dl .empty .icon { height: 28px; }
504
  .lf-howto { max-width: 920px; }
505
  .lf-howto h3 { scroll-margin-top: 16px; margin-top: 1.6em !important; }
506
  .lf-howto em { color: var(--body-text-color-subdued); font-size: 13.5px; }
 
637
  summary = gr.Markdown("Above: what a result looks like (the first example point). Your "
638
  "field replaces it. The first run after the Space wakes up also loads "
639
  "the model (about a minute).")
640
+ dl = gr.File(label="Download: villa output folder, field.npz, receipt.json", height=88,
641
+ elem_id="lf-dl")
642
  with gr.Accordion("Receipt", open=False):
643
  receipt = gr.JSON()
644
  with gr.Accordion("About the model", open=False):