mrfakename commited on
Commit
9983762
1 Parent(s): 48707ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -605,16 +605,17 @@ with gr.Blocks() as vote:
605
 
606
  with gr.Blocks() as about:
607
  gr.Markdown(ABOUT)
608
- with gr.Blocks() as admin:
609
- rdb = gr.Button("Reload Audio Dataset")
610
- # rdb.click(reload_audio_dataset, outputs=rdb)
611
- with gr.Group():
612
- dbtext = gr.Textbox(label="Type \"delete db\" to confirm", placeholder="delete db")
613
- ddb = gr.Button("Delete DB")
614
- ddb.click(del_db, inputs=dbtext, outputs=ddb)
615
  with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="TTS Leaderboard") as demo:
616
  gr.Markdown(DESCR)
617
- gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
 
618
  if CITATION_TEXT:
619
  with gr.Row():
620
  with gr.Accordion("Citation", open=False):
 
605
 
606
  with gr.Blocks() as about:
607
  gr.Markdown(ABOUT)
608
+ # with gr.Blocks() as admin:
609
+ # rdb = gr.Button("Reload Audio Dataset")
610
+ # # rdb.click(reload_audio_dataset, outputs=rdb)
611
+ # with gr.Group():
612
+ # dbtext = gr.Textbox(label="Type \"delete db\" to confirm", placeholder="delete db")
613
+ # ddb = gr.Button("Delete DB")
614
+ # ddb.click(del_db, inputs=dbtext, outputs=ddb)
615
  with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="TTS Leaderboard") as demo:
616
  gr.Markdown(DESCR)
617
+ # gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
618
+ gr.TabbedInterface([vote, leaderboard, about], ['Vote', 'Leaderboard', 'About'])
619
  if CITATION_TEXT:
620
  with gr.Row():
621
  with gr.Accordion("Citation", open=False):