Spaces:
Running
Running
Contenders Tab
Browse files- app/messages.py +34 -0
- app/ui.py +2 -1
app/messages.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from .config import *
|
|
|
|
| 2 |
|
| 3 |
############
|
| 4 |
# Messages #
|
|
@@ -59,4 +60,37 @@ LDESC = """
|
|
| 59 |
Vote to help the community determine the best text-to-speech (TTS) models.
|
| 60 |
The leaderboard displays models in descending order of how natural they sound (based on votes cast by the community).
|
| 61 |
Important: In order to help keep results fair, the leaderboard hides results by default until the number of votes passes a threshold. Tick the `Reveal preliminary results` to show models without sufficient votes. Please note that preliminary results may be inaccurate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
""".strip()
|
|
|
|
| 1 |
from .config import *
|
| 2 |
+
from .models import *
|
| 3 |
|
| 4 |
############
|
| 5 |
# Messages #
|
|
|
|
| 60 |
Vote to help the community determine the best text-to-speech (TTS) models.
|
| 61 |
The leaderboard displays models in descending order of how natural they sound (based on votes cast by the community).
|
| 62 |
Important: In order to help keep results fair, the leaderboard hides results by default until the number of votes passes a threshold. Tick the `Reveal preliminary results` to show models without sufficient votes. Please note that preliminary results may be inaccurate.
|
| 63 |
+
""".strip()
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
model_series = []
|
| 67 |
+
for model in AVAILABLE_MODELS.keys():
|
| 68 |
+
# name up to first whitespace
|
| 69 |
+
model = model.split()[0]
|
| 70 |
+
model_series.append('%27'+ model +'%27')
|
| 71 |
+
try:
|
| 72 |
+
for model in HF_SPACES.values():
|
| 73 |
+
# url encode pluses +
|
| 74 |
+
model_series.append('%27'+ model['series'].replace('+', '%2B') +'%27')
|
| 75 |
+
except:
|
| 76 |
+
pass
|
| 77 |
+
|
| 78 |
+
TTS_INFO = f"""
|
| 79 |
+
## π£ Contenders
|
| 80 |
+
|
| 81 |
+
### π Closed Source TTS
|
| 82 |
+
* Microsoft _Edge TTS_
|
| 83 |
+
|
| 84 |
+
### π Open Source TTS capabilities table
|
| 85 |
+
|
| 86 |
+
See [the full dataset itself](https://huggingface.co/datasets/Pendrokar/open_tts_tracker) for the legend and more in depth information of each model.
|
| 87 |
+
""".strip()
|
| 88 |
+
TTS_DATASET_IFRAME_ORDER = '%2C+'.join(model_series)
|
| 89 |
+
TTS_DATASET_IFRAME = f"""
|
| 90 |
+
<iframe
|
| 91 |
+
src="https://huggingface.co/datasets/Pendrokar/open_tts_tracker/embed/sql-console/default/train?sql_console=true&sql=--+The+SQL+console+is+powered+by+DuckDB+WASM+and+runs+entirely+in+the+browser.%0A--+Get+started+by+typing+a+query+or+selecting+a+view+from+the+options+below.%0ASELECT+*%2C+%22Name%22+IN+%28{TTS_DATASET_IFRAME_ORDER}%29+AS+%22In+arena%22+FROM+train+WHERE+%22Insta-clone+%F0%9F%91%A5%22+IS+NOT+NULL+ORDER+BY+%22In+arena%22+DESC+LIMIT+50%3B&views%5B%5D=train"
|
| 92 |
+
frameborder="0"
|
| 93 |
+
width="100%"
|
| 94 |
+
height="650px"
|
| 95 |
+
></iframe>
|
| 96 |
""".strip()
|
app/ui.py
CHANGED
|
@@ -3,6 +3,7 @@ from .config import *
|
|
| 3 |
from .messages import *
|
| 4 |
from .ui_vote import *
|
| 5 |
from .ui_leaderboard import *
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
with gr.Blocks() as about:
|
|
@@ -10,7 +11,7 @@ with gr.Blocks() as about:
|
|
| 10 |
|
| 11 |
with gr.Blocks(css="footer {visibility: hidden}textbox{resize:none}", title="TTS Arena") as app:
|
| 12 |
gr.Markdown(DESCR)
|
| 13 |
-
gr.TabbedInterface([vote, leaderboard, about], ['Vote', 'Leaderboard', 'About'])
|
| 14 |
if CITATION_TEXT:
|
| 15 |
with gr.Row():
|
| 16 |
with gr.Accordion("Citation", open=False):
|
|
|
|
| 3 |
from .messages import *
|
| 4 |
from .ui_vote import *
|
| 5 |
from .ui_leaderboard import *
|
| 6 |
+
from .ui_contenders import *
|
| 7 |
|
| 8 |
|
| 9 |
with gr.Blocks() as about:
|
|
|
|
| 11 |
|
| 12 |
with gr.Blocks(css="footer {visibility: hidden}textbox{resize:none}", title="TTS Arena") as app:
|
| 13 |
gr.Markdown(DESCR)
|
| 14 |
+
gr.TabbedInterface([vote, leaderboard, about, tts_info], ['π³οΈ Vote', 'π Leaderboard', 'π About', 'π£ Contenders'])
|
| 15 |
if CITATION_TEXT:
|
| 16 |
with gr.Row():
|
| 17 |
with gr.Accordion("Citation", open=False):
|