Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,16 @@ with gr.Blocks() as demo:
|
|
74 |
|
75 |
with gr.Column():
|
76 |
gr.Markdown("This is where your Markdown-formatted healthsheet will appear! You can copy and paste it into your dataset card.")
|
77 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
if __name__ == "__main__":
|
80 |
demo.launch()
|
|
|
74 |
|
75 |
with gr.Column():
|
76 |
gr.Markdown("This is where your Markdown-formatted healthsheet will appear! You can copy and paste it into your dataset card.")
|
77 |
+
with gr.Accordion("Healthsheet", open=True):
|
78 |
+
for header in healthsheet_dict:
|
79 |
+
with gr.Accordion(header, open=False):
|
80 |
+
for var_name in healthsheet_dict[header]:
|
81 |
+
question = healthsheet_dict[header][var_name]['question']
|
82 |
+
answer = healthsheet_dict[header][var_name]['answer']
|
83 |
+
gr.Textbox(answer, label=question)
|
84 |
+
|
85 |
+
with gr.Accordion("Markdown Version", open=True):
|
86 |
+
gr.Textbox(healthsheet, label='Your Healthsheet', show_copy_button=True)
|
87 |
|
88 |
if __name__ == "__main__":
|
89 |
demo.launch()
|