Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ with gr.Blocks() as demo:
|
|
70 |
for var_name, label_text in json_data[tab_name].items():
|
71 |
answer = gr.Textbox(label=label_text, lines=3)
|
72 |
update_btn = gr.Button("Update")
|
73 |
-
update_btn.click(update_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.")
|
|
|
70 |
for var_name, label_text in json_data[tab_name].items():
|
71 |
answer = gr.Textbox(label=label_text, lines=3)
|
72 |
update_btn = gr.Button("Update")
|
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.")
|