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

annotation app code-7917ca6eed02+git-8d2b947-dirty

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -155,6 +155,9 @@ def build_demo(docs, config, out_dir: str | Path, meta: dict, layout: str = "hor
155
 
156
  with gr.Group(visible=False) as g_done:
157
  done_md = gr.Markdown("", elem_id="done_md")
 
 
 
158
 
159
  groups = {"start": g_start, "consent": g_consent, "s1": g_s1, "s2": g_s2, "done": g_done}
160
  ALL = [state, *groups.values(), start_err, consent_err, s1_progress, *s1_texts, easiest, hardest, gap_bm,
 
155
 
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,