Spaces:
Runtime error
Runtime error
Benjamin Bossan
commited on
Commit
•
1bd69d6
1
Parent(s):
f834b58
Eagerly render the model card
Browse filesDon't wait for users to click on "render"
app.py
CHANGED
@@ -369,7 +369,8 @@ with left_col:
|
|
369 |
|
370 |
with right_col:
|
371 |
# this contains the rendered model card
|
372 |
-
st.button(label="Render model card", on_click=display_model_card)
|
373 |
rendered = download_model_card()
|
374 |
if rendered:
|
375 |
st.download_button(label="Download model card (markdown format)", data=rendered)
|
|
|
|
|
|
369 |
|
370 |
with right_col:
|
371 |
# this contains the rendered model card
|
|
|
372 |
rendered = download_model_card()
|
373 |
if rendered:
|
374 |
st.download_button(label="Download model card (markdown format)", data=rendered)
|
375 |
+
|
376 |
+
display_model_card()
|