Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
LAST_UPDATED = "Nov
|
| 4 |
|
| 5 |
####################################
|
| 6 |
# Datos est谩ticos del leaderboard
|
|
@@ -62,18 +62,21 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 62 |
|
| 63 |
with gr.Blocks(theme=theme) as demo:
|
| 64 |
gr.Markdown("# 馃弳 Leaderboard\nVote to help the community determine the best Catalan TTS models.\n")
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
with gr.Tab("Leaderboard"):
|
| 68 |
-
# Inicializa la tabla con los datos directamente al iniciar
|
| 69 |
leaderboard_table = gr.DataFrame(
|
| 70 |
headers=["Rank", "Model", "UTMOS", "WER", "STOI", "PESQ"],
|
| 71 |
datatype=["str", "str", "str", "str", "str", "str"],
|
| 72 |
value=get_leaderboard() # Carga los datos iniciales de la tabla
|
| 73 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
|
|
|
| 77 |
|
| 78 |
# Lanzar la aplicaci贸n
|
| 79 |
demo.queue(api_open=False, default_concurrency_limit=40).launch(show_api=False)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
LAST_UPDATED = "Nov 25th 2024"
|
| 4 |
|
| 5 |
####################################
|
| 6 |
# Datos est谩ticos del leaderboard
|
|
|
|
| 62 |
|
| 63 |
with gr.Blocks(theme=theme) as demo:
|
| 64 |
gr.Markdown("# 馃弳 Leaderboard\nVote to help the community determine the best Catalan TTS models.\n")
|
| 65 |
+
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 66 |
+
with gr.TabItem("馃弲 Leaderboard", elem_id="od-benchmark-tab-table", id=0):
|
|
|
|
|
|
|
| 67 |
leaderboard_table = gr.DataFrame(
|
| 68 |
headers=["Rank", "Model", "UTMOS", "WER", "STOI", "PESQ"],
|
| 69 |
datatype=["str", "str", "str", "str", "str", "str"],
|
| 70 |
value=get_leaderboard() # Carga los datos iniciales de la tabla
|
| 71 |
)
|
| 72 |
+
|
| 73 |
+
with gr.TabItem("馃搱 Metrics", elem_id="od-benchmark-tab-table", id=1):
|
| 74 |
+
gr.Markdown(METRICS_TAB_TEXT, elem_classes="markdown-text")
|
| 75 |
+
|
| 76 |
|
| 77 |
+
gr.Markdown(f"Last updated on **{LAST_UPDATED}**", elem_classes="markdown-text")
|
| 78 |
+
|
| 79 |
+
|
| 80 |
|
| 81 |
# Lanzar la aplicaci贸n
|
| 82 |
demo.queue(api_open=False, default_concurrency_limit=40).launch(show_api=False)
|