Spaces:
Runtime error
Runtime error
app traducida al castellano
Browse files
app.py
CHANGED
|
@@ -118,45 +118,6 @@ def donut_chart_total() -> alt.Chart:
|
|
| 118 |
return chart
|
| 119 |
|
| 120 |
|
| 121 |
-
def donut_chart_target() -> alt.Chart:
|
| 122 |
-
"""
|
| 123 |
-
This function returns a donut chart with the progress of the total annotations, in terms of the v1 objective.
|
| 124 |
-
Counts each record that has been annotated at least once.
|
| 125 |
-
|
| 126 |
-
Returns:
|
| 127 |
-
An altair chart with the donut chart.
|
| 128 |
-
"""
|
| 129 |
-
|
| 130 |
-
# Load your data
|
| 131 |
-
annotated_records = len(target_dataset)
|
| 132 |
-
pending_records = int(os.getenv("TARGET_ANNOTATIONS_V1")) - annotated_records
|
| 133 |
-
|
| 134 |
-
# Prepare data for the donut chart
|
| 135 |
-
source = pd.DataFrame(
|
| 136 |
-
{
|
| 137 |
-
"values": [annotated_records, pending_records],
|
| 138 |
-
"category": [ANNOTATED, PENDING],
|
| 139 |
-
"colors": ["#4CAF50", "#757575"], # Green for Completed, Grey for Remaining
|
| 140 |
-
}
|
| 141 |
-
)
|
| 142 |
-
|
| 143 |
-
base = alt.Chart(source).encode(
|
| 144 |
-
theta=alt.Theta("values:Q", stack=True),
|
| 145 |
-
radius=alt.Radius(
|
| 146 |
-
"values", scale=alt.Scale(type="sqrt", zero=True, rangeMin=20)
|
| 147 |
-
),
|
| 148 |
-
color=alt.Color("category:N", legend=alt.Legend(title="Category")),
|
| 149 |
-
)
|
| 150 |
-
|
| 151 |
-
c1 = base.mark_arc(innerRadius=20, stroke="#fff")
|
| 152 |
-
|
| 153 |
-
c2 = base.mark_text(radiusOffset=20).encode(text="values:Q")
|
| 154 |
-
|
| 155 |
-
chart = c1 + c2
|
| 156 |
-
|
| 157 |
-
return chart
|
| 158 |
-
|
| 159 |
-
|
| 160 |
def kpi_chart_remaining() -> alt.Chart:
|
| 161 |
"""
|
| 162 |
This function returns a KPI chart with the remaining amount of records to be annotated.
|
|
@@ -308,24 +269,26 @@ def main() -> None:
|
|
| 308 |
with gr.Blocks(css=css) as demo:
|
| 309 |
gr.Markdown(
|
| 310 |
"""
|
| 311 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 312 |
|
| 313 |
-
Hugging Face en @argilla crowdsourcen het [Multilingual Prompt Evaluation Project](https://github.com/huggingface/data-is-better-together/tree/main/prompt_translation): een open meertalige benchmark voor de evaluatie van taalmodellen, en dus ook voor het Nederlands.
|
| 314 |
|
| 315 |
-
##
|
| 316 |
-
|
| 317 |
-
|
| 318 |
|
| 319 |
-
## Meedoen
|
| 320 |
-
Meedoen is simpel. Ga naar de [Annotatie-Space](https://dibt-dutch-prompt-translation-for-dutch.hf.space/), log in of maak een Hugging Face account, en je kunt meteen aan de slag.
|
| 321 |
-
Alvast bedankt! Oh, je krijgt ook een steuntje in de rug: GPT4 heeft alvast een vertaalsuggestie voor je klaargezet.
|
| 322 |
"""
|
| 323 |
)
|
| 324 |
|
| 325 |
gr.Markdown(
|
| 326 |
f"""
|
| 327 |
-
## 🚀
|
| 328 |
-
|
| 329 |
"""
|
| 330 |
)
|
| 331 |
with gr.Row():
|
|
@@ -356,8 +319,8 @@ def main() -> None:
|
|
| 356 |
|
| 357 |
gr.Markdown(
|
| 358 |
"""
|
| 359 |
-
## 👾
|
| 360 |
-
|
| 361 |
"""
|
| 362 |
)
|
| 363 |
|
|
|
|
| 118 |
return chart
|
| 119 |
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
def kpi_chart_remaining() -> alt.Chart:
|
| 122 |
"""
|
| 123 |
This function returns a KPI chart with the remaining amount of records to be annotated.
|
|
|
|
| 269 |
with gr.Blocks(css=css) as demo:
|
| 270 |
gr.Markdown(
|
| 271 |
"""
|
| 272 |
+
# 🌍 Español - Multilingual Prompt Evaluation Project
|
| 273 |
+
|
| 274 |
+
Hugging Face y @argilla están realizando el proyecto [Multilingual Prompt Evaluation Project](https://github.com/huggingface/data-is-better-together/tree/main/prompt_translation). Es un benchmak multilingüe abierto para la evaluación de modelos de lenguaje, y por supuesto, también para el español.
|
| 275 |
+
|
| 276 |
+
## El objetivo es traducir 500 prompts
|
| 277 |
+
Y como siempre: ¡se necesita data para eso! La comunidad seleccionó los mejores 500 prompts que formarán el benchmark. En inglés, por supuesto.
|
| 278 |
+
**Por eso necesitamos tu ayuda**: si entre todos traducimos los 500 prompts, podremos añadir el español al leaderboard.
|
| 279 |
|
|
|
|
| 280 |
|
| 281 |
+
## Cómo participar
|
| 282 |
+
Participar es sencillo. Ve al [Space de anotación](https://somosnlp-dibt-prompt-translation-for-es.hf.space/), inicia sesión o crea una cuenta de Hugging Face, y podrás empezar a trabajar.
|
| 283 |
+
¡Gracias de antemano! Ah, y te daremos un empujoncito: GPT4 ya ha preparado una sugerencia de traducción para ti.
|
| 284 |
|
|
|
|
|
|
|
|
|
|
| 285 |
"""
|
| 286 |
)
|
| 287 |
|
| 288 |
gr.Markdown(
|
| 289 |
f"""
|
| 290 |
+
## 🚀 Progreso Actual
|
| 291 |
+
¡Esto es lo que hemos logrado hasta ahora!
|
| 292 |
"""
|
| 293 |
)
|
| 294 |
with gr.Row():
|
|
|
|
| 319 |
|
| 320 |
gr.Markdown(
|
| 321 |
"""
|
| 322 |
+
## 👾 Hall de la Fama
|
| 323 |
+
Aquí puedes ver el número de contribuidores y los contribuidores con más contribuciones:
|
| 324 |
"""
|
| 325 |
)
|
| 326 |
|