Spaces:
Sleeping
Sleeping
mariagrandury
commited on
Commit
•
9de9040
1
Parent(s):
4f4b585
implement nlp conferences table
Browse files- .gitignore +1 -0
- README.md +4 -6
- app.py +79 -0
- nlp_conferences.csv +6 -0
- requirements.txt +2 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
venv
|
README.md
CHANGED
@@ -1,13 +1,11 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.37.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: NLP Conferences
|
3 |
+
emoji: 🤓
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: green
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.37.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
---
|
|
|
|
app.py
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
df = pd.read_csv("nlp_conferences.csv")
|
5 |
+
|
6 |
+
|
7 |
+
def update_table(search_query):
|
8 |
+
if search_query == "":
|
9 |
+
return df
|
10 |
+
else:
|
11 |
+
# Filter the dataframe based on the search query
|
12 |
+
filtered_df = df[
|
13 |
+
df.apply(
|
14 |
+
lambda row: row.astype(str)
|
15 |
+
.str.contains(search_query, case=False)
|
16 |
+
.any(),
|
17 |
+
axis=1,
|
18 |
+
)
|
19 |
+
]
|
20 |
+
return filtered_df
|
21 |
+
|
22 |
+
|
23 |
+
with gr.Blocks() as app:
|
24 |
+
with gr.Tabs():
|
25 |
+
with gr.TabItem("Español"):
|
26 |
+
gr.Markdown(
|
27 |
+
"""
|
28 |
+
# 🚀 Conferencias de PLN
|
29 |
+
|
30 |
+
Descubre las próximas conferencias de PLN. Las fechas límites son para la Main Conference.
|
31 |
+
|
32 |
+
Ayúdanos a expandir esta lista. [Comenta](https://huggingface.co/spaces/somosnlp/nlp-conferences/discussions) y contribuye para hacerla lo más completa posible. ¡Gracias!
|
33 |
+
"""
|
34 |
+
)
|
35 |
+
|
36 |
+
with gr.Row():
|
37 |
+
search_box = gr.Textbox(
|
38 |
+
placeholder="Buscar...",
|
39 |
+
label="Filtra la tabla",
|
40 |
+
show_label=False,
|
41 |
+
)
|
42 |
+
with gr.Row():
|
43 |
+
table = gr.Dataframe(
|
44 |
+
value=df,
|
45 |
+
label="Conferencias de PLN",
|
46 |
+
show_label=False,
|
47 |
+
interactive=False,
|
48 |
+
wrap=True,
|
49 |
+
column_widths=["20%", "20%", "20%", "20%", "20%"],
|
50 |
+
)
|
51 |
+
search_box.change(fn=update_table, inputs=search_box, outputs=table)
|
52 |
+
|
53 |
+
with gr.TabItem("English"):
|
54 |
+
gr.Markdown(
|
55 |
+
"""
|
56 |
+
# 🚀 NLP Conferences
|
57 |
+
|
58 |
+
Discover the upcoming NLP conferences.
|
59 |
+
|
60 |
+
Help us expand this list! [Comment](https://huggingface.co/spaces/somosnlp/nlp-conferences/discussions) and contribute to make it comprehensive. Thank you!
|
61 |
+
"""
|
62 |
+
)
|
63 |
+
|
64 |
+
with gr.Row():
|
65 |
+
search_box = gr.Textbox(
|
66 |
+
placeholder="Type to search...", label="Search", show_label=False
|
67 |
+
)
|
68 |
+
with gr.Row():
|
69 |
+
table = gr.Dataframe(
|
70 |
+
value=df,
|
71 |
+
label="NLP Conferences",
|
72 |
+
show_label=False,
|
73 |
+
interactive=False,
|
74 |
+
wrap=True,
|
75 |
+
column_widths=["20%", "20%", "20%", "20%", "20%"],
|
76 |
+
)
|
77 |
+
search_box.change(fn=update_table, inputs=search_box, outputs=table)
|
78 |
+
|
79 |
+
app.launch()
|
nlp_conferences.csv
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Conference, Location, Date, Deadline, Website
|
2 |
+
ACL 2024, Bangkok Thailand, August 11-16 2024, February 15 2024, https://2024.aclweb.org
|
3 |
+
NLMLT 2024, Vienna Austria, October 26-27 2024, June 29 2024, https://cst2024.org/nlmlt
|
4 |
+
EMNLP 2024, Miami USA, November 12-16 2024, June 15 2024, https://2024.emnlp.org
|
5 |
+
NeurIPS 2024, Vancouver Canada, December 9-15 2024, May 22 2024, https://neurips.cc/Conferences/2024
|
6 |
+
COLING 2025, Abu Dhabi UAE, January 19-24 2025, September 16 2024, https://coling2025.org
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio==4.26.0
|
2 |
+
pandas==2.2.1
|