Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,17 +14,17 @@ CITATION_BUTTON_TEXT = """@article{2022,
|
|
14 |
"""
|
15 |
|
16 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
17 |
-
gr.HTML("<h1><center>Healthsheet Creator!
|
18 |
gr.HTML('<h3><center>Create a healthsheet based on <a href="https://arxiv.org/abs/2202.13028">Rostamzadeh et al. (2022) <i>"Healthsheet: Development of a Transparency Artifact for Health Datasets"</i></a><h4><center>')
|
19 |
|
20 |
with gr.Row():
|
21 |
-
with gr.Accordion("Abstract", open=
|
22 |
abstract_button = gr.Textbox(
|
23 |
value = ABSTRACT_TEXT,
|
24 |
lines = 5,
|
25 |
)
|
26 |
with gr.Row():
|
27 |
-
with gr.Accordion("Citation", open=False):
|
28 |
citation_button = gr.Textbox(
|
29 |
value=CITATION_BUTTON_TEXT,
|
30 |
lines=9,
|
@@ -36,8 +36,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
36 |
|
37 |
with gr.Tab("General Information"):
|
38 |
gr.Markdown("If the answer to any of the questions in the questionnaire is N/A, please describe why the answer is N/A (e.g: data not being available).")
|
39 |
-
summary = gr.Textbox(label='Provide a 2 sentence summary of this dataset.', lines=
|
40 |
-
audit = gr.Textbox(label='Has the dataset been audited before? If yes, by whom and what are the results?', lines=
|
41 |
|
42 |
with gr.Tab("Dataset Versioning"):
|
43 |
gr.Markdown("Version: A dataset will be considered to have a new version if there are major differences from a previous release. Some examples are a change in the number of patients/participants, or an increase in the data modalities covered.")
|
@@ -48,6 +48,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
48 |
|
49 |
with gr.Column():
|
50 |
gr.Markdown("This is where your healthsheet will appear!")
|
|
|
51 |
|
52 |
if __name__ == "__main__":
|
53 |
demo.launch()
|
|
|
14 |
"""
|
15 |
|
16 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
17 |
+
gr.HTML("<h1><center>Healthsheet Creator! πͺπβ¨<h1><center>")
|
18 |
gr.HTML('<h3><center>Create a healthsheet based on <a href="https://arxiv.org/abs/2202.13028">Rostamzadeh et al. (2022) <i>"Healthsheet: Development of a Transparency Artifact for Health Datasets"</i></a><h4><center>')
|
19 |
|
20 |
with gr.Row():
|
21 |
+
with gr.Accordion("π Abstract", open=False):
|
22 |
abstract_button = gr.Textbox(
|
23 |
value = ABSTRACT_TEXT,
|
24 |
lines = 5,
|
25 |
)
|
26 |
with gr.Row():
|
27 |
+
with gr.Accordion("π Citation", open=False):
|
28 |
citation_button = gr.Textbox(
|
29 |
value=CITATION_BUTTON_TEXT,
|
30 |
lines=9,
|
|
|
36 |
|
37 |
with gr.Tab("General Information"):
|
38 |
gr.Markdown("If the answer to any of the questions in the questionnaire is N/A, please describe why the answer is N/A (e.g: data not being available).")
|
39 |
+
summary = gr.Textbox(label='Provide a 2 sentence summary of this dataset.', lines=3)
|
40 |
+
audit = gr.Textbox(label='Has the dataset been audited before? If yes, by whom and what are the results?', lines=3)
|
41 |
|
42 |
with gr.Tab("Dataset Versioning"):
|
43 |
gr.Markdown("Version: A dataset will be considered to have a new version if there are major differences from a previous release. Some examples are a change in the number of patients/participants, or an increase in the data modalities covered.")
|
|
|
48 |
|
49 |
with gr.Column():
|
50 |
gr.Markdown("This is where your healthsheet will appear!")
|
51 |
+
gr.Textbox("Healthsheet")
|
52 |
|
53 |
if __name__ == "__main__":
|
54 |
demo.launch()
|