mrfakename commited on
Commit
b33525a
1 Parent(s): b582881

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -204,7 +204,7 @@ Vote to help the community determine the best text-to-speech (TTS) models.
204
 
205
  The leaderboard displays models in descending order of how natural they sound (based on votes cast by the community).
206
 
207
- Important: In order to help keep results fair, the leaderboard hides results by default until the number of votes passes a threshold.
208
  """.strip()
209
 
210
 
@@ -462,11 +462,11 @@ with gr.Blocks() as leaderboard:
462
  # df = gr.Dataframe(interactive=False, value=get_leaderboard())
463
  df = gr.Dataframe(interactive=False, min_width=0, wrap=True, column_widths=[30, 200, 50, 50])
464
  with gr.Row():
465
- # reveal_prelim = gr.Checkbox(label="Reveal preliminary results", info="Show all models, including models with very few human ratings.", scale=1)
466
  reloadbtn = gr.Button("Refresh", scale=3)
467
- # reveal_prelim.input(get_leaderboard, inputs=[reveal_prelim], outputs=[df])
468
- leaderboard.load(get_leaderboard, inputs=[], outputs=[df])
469
- reloadbtn.click(get_leaderboard, inputs=[], outputs=[df])
470
  # gr.Markdown("DISCLAIMER: The licenses listed may not be accurate or up to date, you are responsible for checking the licenses before using the models. Also note that some models may have additional usage restrictions.")
471
 
472
  # with gr.Blocks() as vote:
 
204
 
205
  The leaderboard displays models in descending order of how natural they sound (based on votes cast by the community).
206
 
207
+ Important: In order to help keep results fair, the leaderboard hides results by default until the number of votes passes a threshold. Tick the `Reveal preliminary results` to show models without sufficient votes. Please note that preliminary results may be inaccurate.
208
  """.strip()
209
 
210
 
 
462
  # df = gr.Dataframe(interactive=False, value=get_leaderboard())
463
  df = gr.Dataframe(interactive=False, min_width=0, wrap=True, column_widths=[30, 200, 50, 50])
464
  with gr.Row():
465
+ reveal_prelim = gr.Checkbox(label="Reveal preliminary results", info="Show all models, including models with very few human ratings.", scale=1)
466
  reloadbtn = gr.Button("Refresh", scale=3)
467
+ reveal_prelim.input(get_leaderboard, inputs=[reveal_prelim], outputs=[df])
468
+ leaderboard.load(get_leaderboard, inputs=[reveal_prelim], outputs=[df])
469
+ reloadbtn.click(get_leaderboard, inputs=[reveal_prelim], outputs=[df])
470
  # gr.Markdown("DISCLAIMER: The licenses listed may not be accurate or up to date, you are responsible for checking the licenses before using the models. Also note that some models may have additional usage restrictions.")
471
 
472
  # with gr.Blocks() as vote: