File size: 2,808 Bytes
f148f5c
 
2dff845
 
 
 
 
 
 
 
 
 
 
 
f148f5c
c22eabe
b47c53a
2dff845
 
b47c53a
2dff845
 
b47c53a
2dff845
 
e76748f
 
 
 
 
 
a579973
e76748f
 
 
 
 
 
f148f5c
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import gradio as gr

CITATION_BUTTON_TEXT = """
@article{2022,
   title={Healthsheet: Development of a Transparency Artifact for Health Datasets},
   url={http://dx.doi.org/10.1145/3531146.3533239},
   DOI={10.1145/3531146.3533239},
   journal={2022 ACM Conference on Fairness, Accountability, and Transparency},
   publisher={ACM},
   author={Rostamzadeh, Negar and Mincu, Diana and Roy, Subhrajit and Smart, Andrew and Wilcox, Lauren and Pushkarna, Mahima and Schrouff, Jessica and Amironesei, Razvan and Moorosi, Nyalleng and Heller, Katherine},
   year={2022},
   month={Jun} }
"""

with gr.Blocks() as demo:
    gr.HTML("<h1><center>Healthsheet Creator! πŸͺ„πŸ“„<h1><center>")
    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>')

    with gr.Row():
        with gr.Accordion("Citation", open=False):
            citation_button = gr.Textbox(
                value=CITATION_BUTTON_TEXT,
                lines=9,
                elem_id="citation-button",
            ).style(show_copy_button=True)
    
    with gr.Tab("General Information"):
        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).")
        summary = gr.Textbox(label='Provide a 2 sentence summary of this dataset.', lines=5)
        audit = gr.Textbox(label='Has the dataset been audited before? If yes, by whom and what are the results?', lines=5)

    with gr.Tab("Dataset Versioning"):
        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.")
        gr.Markdown("Sub-version: A sub-version tends to apply smaller scale changes to a given version. Some datasets in healthcare are released without labels and predefined tasks, or will be later labeled by researchers for specific tasks and problems, to form sub-versions of the dataset.")
        gr.Markdown("The following set of questions clarifies the information about the current (latest) version of the dataset. It is important to report the rationale for labeling the data in any of the versions and sub-versions that this datasheet addresses, funding resources, and motivations behind each released version of the dataset.")

        update = gr.Textbox(label='Does the dataset get released as static versions or is it dynamically updated? a. If static, how many versions of the dataset exist? b.If dynamic, how frequently is the dataset updated?')
        
    
if __name__ == "__main__":
    demo.launch()