katielink commited on
Commit
255e4cf
β€’
1 Parent(s): 3fba49a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
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 Markdown-formatted healthsheet will appear! You can copy and paste it into your dataset card.")
77
- with gr.Accordion("Healthsheet", open=True):
 
 
 
 
78
  gr.Markdown(healthsheet)
79
 
80
- with gr.Accordion("Markdown Version", open=True):
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__":