mariagrandury
commited on
Commit
•
50002b2
1
Parent(s):
a5766c6
Create language tabs
Browse files
README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
---
|
2 |
title: Spanish NLP Initiatives
|
3 |
-
emoji:
|
4 |
colorFrom: yellow
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.26.0
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
license: apache-2.0
|
11 |
---
|
|
|
1 |
---
|
2 |
title: Spanish NLP Initiatives
|
3 |
+
emoji: 🚀
|
4 |
colorFrom: yellow
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.26.0
|
8 |
app_file: app.py
|
9 |
+
pinned: true
|
10 |
license: apache-2.0
|
11 |
---
|
app.py
CHANGED
@@ -21,25 +21,55 @@ def update_table(search_query):
|
|
21 |
|
22 |
|
23 |
with gr.Blocks() as app:
|
24 |
-
gr.
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
app.launch()
|
|
|
21 |
|
22 |
|
23 |
with gr.Blocks() as app:
|
24 |
+
with gr.Tabs():
|
25 |
+
with gr.TabItem("Español"):
|
26 |
+
gr.Markdown(
|
27 |
+
"""
|
28 |
+
# 🚀 Iniciativas de PLN en español
|
29 |
+
|
30 |
+
Descubre las iniciativas impulsando el PLN en español y lenguas cooficiales en LATAM y España.
|
31 |
+
|
32 |
+
Ayúdanos a expandir esta lista. [Comenta](https://huggingface.co/spaces/somosnlp/spanish-nlp-initiatives/discussions) y contribuye para hacerla lo más completa posible y que cada iniciativa pueda tener la visibilidad que se merece. ¡Gracias!
|
33 |
+
"""
|
34 |
+
)
|
35 |
+
|
36 |
+
with gr.Row():
|
37 |
+
search_box = gr.Textbox(
|
38 |
+
placeholder="Buscar...", label="Filtra la tabla"
|
39 |
+
)
|
40 |
+
with gr.Row():
|
41 |
+
table = gr.Dataframe(
|
42 |
+
value=df,
|
43 |
+
label="Iniciativas de PLN en español",
|
44 |
+
show_label=False,
|
45 |
+
interactive=False,
|
46 |
+
wrap=True,
|
47 |
+
column_widths=["40%", "20%", "10%", "25%", "15%"],
|
48 |
+
)
|
49 |
+
search_box.change(fn=update_table, inputs=search_box, outputs=table)
|
50 |
+
|
51 |
+
with gr.TabItem("English"):
|
52 |
+
gr.Markdown(
|
53 |
+
"""
|
54 |
+
# 🚀 English NLP Initiatives
|
55 |
+
|
56 |
+
Discover the initiatives driving NLP advancements in Spanish and other low-resource languages spoken in LatAm and Spain."
|
57 |
+
|
58 |
+
Help us expand this list! [Comment](https://huggingface.co/spaces/somosnlp/spanish-nlp-initiatives/discussions) and contribute to make it comprehensive so every initiative gets the visibility it deserves. Thank you!
|
59 |
+
"""
|
60 |
+
)
|
61 |
+
|
62 |
+
with gr.Row():
|
63 |
+
search_box = gr.Textbox(placeholder="Type to search...", label="Search")
|
64 |
+
with gr.Row():
|
65 |
+
table = gr.Dataframe(
|
66 |
+
value=df,
|
67 |
+
label="Spanish NLP Initiatives",
|
68 |
+
show_label=False,
|
69 |
+
interactive=False,
|
70 |
+
wrap=True,
|
71 |
+
column_widths=["40%", "20%", "10%", "25%", "15%"],
|
72 |
+
)
|
73 |
+
search_box.change(fn=update_table, inputs=search_box, outputs=table)
|
74 |
|
75 |
app.launch()
|