Spaces:
Running
Running
mrfakename
commited on
Commit
•
2519d7f
1
Parent(s):
0e3778b
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,16 @@ DB_NAME = "database.db"
|
|
19 |
DB_PATH = f"/data/{DB_NAME}" if os.path.isdir("/data") else DB_NAME
|
20 |
|
21 |
AUDIO_DATASET_ID = "ttseval/tts-arena-new"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
####################################
|
24 |
# Functions
|
@@ -343,8 +353,8 @@ with gr.Blocks() as vote:
|
|
343 |
with gr.Row():
|
344 |
gr.HTML('<div align="left"><h3>Model A</h3></div>')
|
345 |
gr.HTML('<div align="right"><h3>Model B</h3></div>')
|
346 |
-
model1 = gr.Textbox(interactive=False, visible=False)
|
347 |
-
model2 = gr.Textbox(interactive=False, visible=False)
|
348 |
# with gr.Group():
|
349 |
# with gr.Row():
|
350 |
# prevmodel1 = gr.Textbox(interactive=False, show_label=False, container=False, value="Vote to reveal model A")
|
@@ -393,5 +403,10 @@ with gr.Blocks() as admin:
|
|
393 |
with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="TTS Leaderboard") as demo:
|
394 |
gr.Markdown(DESCR)
|
395 |
gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
|
|
|
|
|
|
|
|
|
|
|
396 |
|
397 |
demo.queue(api_open=False).launch(show_api=False)
|
|
|
19 |
DB_PATH = f"/data/{DB_NAME}" if os.path.isdir("/data") else DB_NAME
|
20 |
|
21 |
AUDIO_DATASET_ID = "ttseval/tts-arena-new"
|
22 |
+
CITATION_TEXT = None
|
23 |
+
# CITATION_TEXT = """
|
24 |
+
# @misc{tts-arena,
|
25 |
+
# title = {Text to Speech Arena},
|
26 |
+
# author = {},
|
27 |
+
# year = 2024,
|
28 |
+
# publisher = {Hugging Face},
|
29 |
+
# howpublished = "\url{https://huggingface.co/spaces/ttseval/TTS-Arena}"
|
30 |
+
# }
|
31 |
+
# """
|
32 |
|
33 |
####################################
|
34 |
# Functions
|
|
|
353 |
with gr.Row():
|
354 |
gr.HTML('<div align="left"><h3>Model A</h3></div>')
|
355 |
gr.HTML('<div align="right"><h3>Model B</h3></div>')
|
356 |
+
model1 = gr.Textbox(interactive=False, visible=False, max_lines=1, lines=1)
|
357 |
+
model2 = gr.Textbox(interactive=False, visible=False, max_lines=1, lines=1)
|
358 |
# with gr.Group():
|
359 |
# with gr.Row():
|
360 |
# prevmodel1 = gr.Textbox(interactive=False, show_label=False, container=False, value="Vote to reveal model A")
|
|
|
403 |
with gr.Blocks(theme=theme, css="footer {visibility: hidden}textbox{resize:none}", title="TTS Leaderboard") as demo:
|
404 |
gr.Markdown(DESCR)
|
405 |
gr.TabbedInterface([vote, leaderboard, about, admin], ['Vote', 'Leaderboard', 'About', 'Admin (ONLY IN BETA)'])
|
406 |
+
if CITATION_TEXT:
|
407 |
+
with gr.Row():
|
408 |
+
with gr.Accordion("📙 Citation", open=False):
|
409 |
+
gr.Markdown(f"Copy the BibTeX citation to cite this source:\n\n```bibtext\n{CITATION_TEXT}\n```")
|
410 |
+
|
411 |
|
412 |
demo.queue(api_open=False).launch(show_api=False)
|