Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
mrfakename
commited on
Commit
•
8ca296f
1
Parent(s):
1543122
resize not allowed
Browse files
app.py
CHANGED
@@ -295,7 +295,7 @@ with gr.Blocks() as admin:
|
|
295 |
dbtext = gr.Textbox(label="Type \"delete db\" to confirm", placeholder="delete db")
|
296 |
ddb = gr.Button("Delete DB")
|
297 |
ddb.click(del_db, inputs=dbtext, outputs=ddb)
|
298 |
-
with gr.Blocks(theme=theme, css="footer {visibility: hidden}", title="TTS Leaderboard") as demo:
|
299 |
gr.Markdown(DESCR)
|
300 |
gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
|
301 |
def restart_space():
|
@@ -313,11 +313,11 @@ def restart_space():
|
|
313 |
print("Restarting space")
|
314 |
api.restart_space(repo_id=os.getenv('HF_ID'))
|
315 |
def sync_db():
|
|
|
|
|
|
|
316 |
while True:
|
317 |
time.sleep(60 * 10)
|
318 |
-
api = HfApi(
|
319 |
-
token=os.getenv('HF_TOKEN')
|
320 |
-
)
|
321 |
print("Uploading DB")
|
322 |
api.upload_file(
|
323 |
path_or_fileobj='database.db',
|
|
|
295 |
dbtext = gr.Textbox(label="Type \"delete db\" to confirm", placeholder="delete db")
|
296 |
ddb = gr.Button("Delete DB")
|
297 |
ddb.click(del_db, inputs=dbtext, outputs=ddb)
|
298 |
+
with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="TTS Leaderboard") as demo:
|
299 |
gr.Markdown(DESCR)
|
300 |
gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
|
301 |
def restart_space():
|
|
|
313 |
print("Restarting space")
|
314 |
api.restart_space(repo_id=os.getenv('HF_ID'))
|
315 |
def sync_db():
|
316 |
+
api = HfApi(
|
317 |
+
token=os.getenv('HF_TOKEN')
|
318 |
+
)
|
319 |
while True:
|
320 |
time.sleep(60 * 10)
|
|
|
|
|
|
|
321 |
print("Uploading DB")
|
322 |
api.upload_file(
|
323 |
path_or_fileobj='database.db',
|