Spaces:
Sleeping
Sleeping
annotation app code-06aaec53a00d+git-6a5123e-dirty
Browse files
app.py
CHANGED
|
@@ -137,7 +137,7 @@ def build_demo(docs, config, out_dir: str | Path, meta: dict, layout: str = "hor
|
|
| 137 |
start_err = gr.HTML("", elem_id="start_err")
|
| 138 |
|
| 139 |
with gr.Group(visible=False) as g_consent:
|
| 140 |
-
gr.Markdown(study["consent_markdown"])
|
| 141 |
consent_cb = gr.Checkbox(label="I have read the above and agree to take part.", value=False, elem_id="consent_cb")
|
| 142 |
consent_btn = gr.Button("Continue", variant="primary", elem_id="consent_btn")
|
| 143 |
consent_err = gr.HTML("", elem_id="consent_err")
|
|
|
|
| 137 |
start_err = gr.HTML("", elem_id="start_err")
|
| 138 |
|
| 139 |
with gr.Group(visible=False) as g_consent:
|
| 140 |
+
gr.Markdown(study.get(f"consent_markdown_{task}") or study["consent_markdown"]) # per-Space text
|
| 141 |
consent_cb = gr.Checkbox(label="I have read the above and agree to take part.", value=False, elem_id="consent_cb")
|
| 142 |
consent_btn = gr.Button("Continue", variant="primary", elem_id="consent_btn")
|
| 143 |
consent_err = gr.HTML("", elem_id="consent_err")
|