Spaces:
Running
Running
mrfakename
commited on
Commit
•
a2eae81
1
Parent(s):
1cb88a1
Update app.py
Browse files
app.py
CHANGED
@@ -254,11 +254,11 @@ with gr.Blocks() as about:
|
|
254 |
gr.Markdown(ABOUT)
|
255 |
with gr.Blocks() as admin:
|
256 |
rdb = gr.Button("Reload Dataset")
|
257 |
-
ddb = gr.Button("Delete DB")
|
258 |
rdb.click(reload_db, outputs=rdb)
|
259 |
with gr.Group():
|
260 |
dbtext = gr.Textbox(label="Type \"delete db\" to confirm", placeholder="delete db")
|
261 |
-
ddb.
|
|
|
262 |
with gr.Blocks(theme=theme, css="footer {visibility: hidden}", title="TTS Leaderboard") as demo:
|
263 |
gr.Markdown(DESCR)
|
264 |
gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
|
|
|
254 |
gr.Markdown(ABOUT)
|
255 |
with gr.Blocks() as admin:
|
256 |
rdb = gr.Button("Reload Dataset")
|
|
|
257 |
rdb.click(reload_db, outputs=rdb)
|
258 |
with gr.Group():
|
259 |
dbtext = gr.Textbox(label="Type \"delete db\" to confirm", placeholder="delete db")
|
260 |
+
ddb = gr.Button("Delete DB")
|
261 |
+
ddb.click(del_db, inputs=dbtext, outputs=ddb)
|
262 |
with gr.Blocks(theme=theme, css="footer {visibility: hidden}", title="TTS Leaderboard") as demo:
|
263 |
gr.Markdown(DESCR)
|
264 |
gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
|