Benjamin Bossan commited on
Commit
1bd69d6
1 Parent(s): f834b58

Eagerly render the model card

Browse files

Don't wait for users to click on "render"

Files changed (1) hide show
  1. app.py +2 -1
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()