mrfakename commited on
Commit
0ae578e
β€’
1 Parent(s): ae37eba
Files changed (1) hide show
  1. app.py +6 -47
app.py CHANGED
@@ -148,8 +148,6 @@ MUST_BE_LOGGEDIN = "Please login with Hugging Face to participate in the TTS Are
148
  DESCR = """
149
  # TTS Arena: Benchmarking TTS Models in the Wild
150
 
151
- **_NOTE: The leaderboard is currently down due to an issue rendering results that caused it to error out. It will be back up shortly!_**
152
-
153
  Vote to help the community find the best available text-to-speech model!
154
  """.strip()
155
  # INSTR = """
@@ -485,51 +483,13 @@ def reload(chosenmodel1=None, chosenmodel2=None, userid=None, chose_a=False, cho
485
  with gr.Blocks() as leaderboard:
486
  gr.Markdown(LDESC)
487
  # df = gr.Dataframe(interactive=False, value=get_leaderboard())
488
- df1 = gr.Dataframe(interactive=False, min_width=0, wrap=True, column_widths=[30, 200, 50, 50])
489
  with gr.Row():
490
  reveal_prelim = gr.Checkbox(label="Reveal preliminary results", info="Show all models, including models with very few human ratings.", scale=1)
491
  reloadbtn = gr.Button("Refresh", scale=3)
492
- reveal_prelim.input(get_leaderboard, inputs=[reveal_prelim], outputs=[df1])
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
- #leaderboard.load(get_leaderboard, inputs=[reveal_prelim], outputs=[df1])
532
- reloadbtn.click(get_leaderboard, inputs=[reveal_prelim], outputs=[df1])
533
  # 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.")
534
 
535
  # with gr.Blocks() as vote:
@@ -827,12 +787,11 @@ with gr.Blocks() as about:
827
  with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="TTS Arena") as demo:
828
  gr.Markdown(DESCR)
829
  # gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
830
- #gr.TabbedInterface([vote, leaderboard, about], ['πŸ—³οΈ Vote', 'πŸ† Leaderboard', 'πŸ“„ About'])
831
- gr.TabbedInterface([vote, about], ['πŸ—³οΈ Vote', 'πŸ“„ About'])
832
  if CITATION_TEXT:
833
  with gr.Row():
834
  with gr.Accordion("Citation", open=False):
835
  gr.Markdown(f"If you use this data in your publication, please cite us!\n\nCopy the BibTeX citation to cite this source:\n\n```bibtext\n{CITATION_TEXT}\n```\n\nPlease remember that all generated audio clips should be assumed unsuitable for redistribution or commercial use.")
836
 
837
 
838
- demo.queue(api_open=False, default_concurrency_limit=40).launch(show_api=False)
 
148
  DESCR = """
149
  # TTS Arena: Benchmarking TTS Models in the Wild
150
 
 
 
151
  Vote to help the community find the best available text-to-speech model!
152
  """.strip()
153
  # INSTR = """
 
483
  with gr.Blocks() as leaderboard:
484
  gr.Markdown(LDESC)
485
  # df = gr.Dataframe(interactive=False, value=get_leaderboard())
486
+ df = gr.Dataframe(interactive=False, min_width=0, wrap=True, column_widths=[30, 200, 50, 50])
487
  with gr.Row():
488
  reveal_prelim = gr.Checkbox(label="Reveal preliminary results", info="Show all models, including models with very few human ratings.", scale=1)
489
  reloadbtn = gr.Button("Refresh", scale=3)
490
+ reveal_prelim.input(get_leaderboard, inputs=[reveal_prelim], outputs=[df])
491
+ leaderboard.load(get_leaderboard, inputs=[reveal_prelim], outputs=[df])
492
+ reloadbtn.click(get_leaderboard, inputs=[reveal_prelim], outputs=[df])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  # 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.")
494
 
495
  # with gr.Blocks() as vote:
 
787
  with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="TTS Arena") as demo:
788
  gr.Markdown(DESCR)
789
  # gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
790
+ gr.TabbedInterface([vote, leaderboard, about], ['πŸ—³οΈ Vote', 'πŸ† Leaderboard', 'πŸ“„ About'])
 
791
  if CITATION_TEXT:
792
  with gr.Row():
793
  with gr.Accordion("Citation", open=False):
794
  gr.Markdown(f"If you use this data in your publication, please cite us!\n\nCopy the BibTeX citation to cite this source:\n\n```bibtext\n{CITATION_TEXT}\n```\n\nPlease remember that all generated audio clips should be assumed unsuitable for redistribution or commercial use.")
795
 
796
 
797
+ demo.queue(api_open=False, default_concurrency_limit=40).launch(show_api=False)