BVendeville commited on
Commit
bb75de4
·
verified ·
1 Parent(s): d587bbe

annotation app code-5477c1a43383+git-8d2b947-dirty

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -156,8 +156,9 @@ def build_demo(docs, config, out_dir: str | Path, meta: dict, layout: str = "hor
156
  with gr.Group(visible=False) as g_done:
157
  done_md = gr.Markdown("", elem_id="done_md")
158
  # Empty space at the end: when the page is shown inside the Hugging Face Space page (an iframe), the frame
159
- # is sized a little short of the content (30-140 px measured), which hid the submit buttons.
160
- gr.HTML('<div style="height:45vh"></div>', elem_id="bottom_spacer")
 
161
 
162
  groups = {"start": g_start, "consent": g_consent, "s1": g_s1, "s2": g_s2, "done": g_done}
163
  ALL = [state, *groups.values(), start_err, consent_err, s1_progress, *s1_texts, easiest, hardest, gap_bm,
 
156
  with gr.Group(visible=False) as g_done:
157
  done_md = gr.Markdown("", elem_id="done_md")
158
  # Empty space at the end: when the page is shown inside the Hugging Face Space page (an iframe), the frame
159
+ # is sized a little short of the content (30-140 px measured), which hid the submit buttons. Fixed px, not
160
+ # vh: inside a frame that grows with its content, vh would grow with it.
161
+ gr.HTML('<div style="height:320px"></div>', elem_id="bottom_spacer")
162
 
163
  groups = {"start": g_start, "consent": g_consent, "s1": g_s1, "s2": g_s2, "done": g_done}
164
  ALL = [state, *groups.values(), start_err, consent_err, s1_progress, *s1_texts, easiest, hardest, gap_bm,