Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,11 +73,15 @@ with gr.Blocks() as demo:
|
|
73 |
#update_btn.click(fn=update_healthsheet, inputs=[healthsheet_dict, tab_name, var_name, answer], outputs=[healthsheet_dict, healthsheet])
|
74 |
|
75 |
with gr.Column():
|
76 |
-
gr.Markdown("This is where your
|
77 |
-
with gr.Accordion("
|
|
|
|
|
|
|
|
|
78 |
gr.Markdown(healthsheet)
|
79 |
|
80 |
-
with gr.Accordion("Markdown
|
81 |
gr.Textbox(healthsheet, label='Your Healthsheet', show_copy_button=True)
|
82 |
|
83 |
if __name__ == "__main__":
|
|
|
73 |
#update_btn.click(fn=update_healthsheet, inputs=[healthsheet_dict, tab_name, var_name, answer], outputs=[healthsheet_dict, healthsheet])
|
74 |
|
75 |
with gr.Column():
|
76 |
+
gr.Markdown("This is where your healthsheet will appear! You can copy and paste it into your dataset card.")
|
77 |
+
with gr.Accordion("Progress Tracker", open=True):
|
78 |
+
for header in healthsheet_dict:
|
79 |
+
gr.Markdown(f"β {header}")
|
80 |
+
|
81 |
+
with gr.Accordion("Preview your Healthsheet", open=False):
|
82 |
gr.Markdown(healthsheet)
|
83 |
|
84 |
+
with gr.Accordion("Markdown Text (for copying)", open=False):
|
85 |
gr.Textbox(healthsheet, label='Your Healthsheet', show_copy_button=True)
|
86 |
|
87 |
if __name__ == "__main__":
|