Spaces:
Running
Running
jbdel
commited on
Commit
•
e2605ea
1
Parent(s):
4e0c371
corl2024
Browse files- app.py +7 -4
- constants.py +2 -0
- df/PaperCentral.py +24 -22
- pr_paper_central_tab.py +9 -3
app.py
CHANGED
@@ -43,7 +43,7 @@ def logging_flow(oauth_token: Optional[gr.OAuthToken]):
|
|
43 |
style="border: 2px solid rgb(245, 158, 11); border-radius: 50%; width: 1.38rem; height: 1.38rem; margin-right: 0.5rem;">
|
44 |
<span style="font-size: 1rem;">{name}</span>
|
45 |
</div>
|
46 |
-
Head to "
|
47 |
'''
|
48 |
|
49 |
user_info_update = gr.update(value=avatar_html, label="User")
|
@@ -55,11 +55,14 @@ with gr.Blocks(css="style.css") as demo:
|
|
55 |
gr.Markdown("# Paper Central")
|
56 |
with gr.Row():
|
57 |
with gr.Column(scale=1):
|
58 |
-
login_button = gr.LoginButton(value="
|
59 |
user_info_md = gr.HTML()
|
60 |
with gr.Column(scale=1):
|
61 |
with gr.Accordion(label="⭐Release notes", open=False):
|
62 |
gr.Markdown("""
|
|
|
|
|
|
|
63 |
- **October 16, 2024** – Added functionality to filter papers by date ranges.
|
64 |
- **October 11, 2024** – Introduced leaderboards feature.
|
65 |
- **October 8, 2024** – MICCAI 2024 proceedings added.
|
@@ -128,7 +131,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
128 |
)
|
129 |
hf_options = gr.CheckboxGroup(
|
130 |
label="Hugging Face options",
|
131 |
-
choices=["🤗 artifacts", "datasets", "models", "spaces", "github"],
|
132 |
value=[],
|
133 |
elem_id="hf_options"
|
134 |
)
|
@@ -168,7 +171,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
168 |
wrap=True,
|
169 |
)
|
170 |
|
171 |
-
with gr.Tab("
|
172 |
pr_paper_central_tab(paper_central_df.df_raw)
|
173 |
|
174 |
with gr.Tab("Leaderboards", id="tab-leaderboards"):
|
|
|
43 |
style="border: 2px solid rgb(245, 158, 11); border-radius: 50%; width: 1.38rem; height: 1.38rem; margin-right: 0.5rem;">
|
44 |
<span style="font-size: 1rem;">{name}</span>
|
45 |
</div>
|
46 |
+
Head to "Edit papers" tab to modify your paper!
|
47 |
'''
|
48 |
|
49 |
user_info_update = gr.update(value=avatar_html, label="User")
|
|
|
55 |
gr.Markdown("# Paper Central")
|
56 |
with gr.Row():
|
57 |
with gr.Column(scale=1):
|
58 |
+
login_button = gr.LoginButton(value="Add or edit your papers")
|
59 |
user_info_md = gr.HTML()
|
60 |
with gr.Column(scale=1):
|
61 |
with gr.Accordion(label="⭐Release notes", open=False):
|
62 |
gr.Markdown("""
|
63 |
+
- **October 24, 2024** – CoRL 2024 proceedings added.
|
64 |
+
- **October 20, 2024** – You can now add or edit papers.
|
65 |
+
- **October 19, 2024** – Papers with github now have github stars.
|
66 |
- **October 16, 2024** – Added functionality to filter papers by date ranges.
|
67 |
- **October 11, 2024** – Introduced leaderboards feature.
|
68 |
- **October 8, 2024** – MICCAI 2024 proceedings added.
|
|
|
131 |
)
|
132 |
hf_options = gr.CheckboxGroup(
|
133 |
label="Hugging Face options",
|
134 |
+
choices=["🤗 artifacts", "datasets", "models", "spaces", "github", "project page"],
|
135 |
value=[],
|
136 |
elem_id="hf_options"
|
137 |
)
|
|
|
171 |
wrap=True,
|
172 |
)
|
173 |
|
174 |
+
with gr.Tab("Edit papers", id="tab-pr"):
|
175 |
pr_paper_central_tab(paper_central_df.df_raw)
|
176 |
|
177 |
with gr.Tab("Leaderboards", id="tab-leaderboards"):
|
constants.py
CHANGED
@@ -2,6 +2,8 @@ NEURIPS_ICO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIr
|
|
2 |
COLM_ICO = "data:image/svg+xml;base64,PCEtLSBmYXZpY29uLnN2ZyAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDx0ZXh0IHk9IjMyIiBmb250LXNpemU9IjMyIj7wn6aZPC90ZXh0Pgo8L3N2Zz4="
|
3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AwW0dkUgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wOS0xM1QxOTo1NzowMiswMDowMCoa3O4AAAAgdEVYdHNvZnR3YXJlAGh0dHBzOi8vaW1hZ2VtYWdpY2sub3JnvM8dnQAAABh0RVh0VGh1bWI6OkRvY3VtZW50OjpQYWdlcwAxp/+7LwAAABh0RVh0VGh1bWI6OkltYWdlOjpIZWlnaHQAMTkyQF1xVQAAABd0RVh0VGh1bWI6OkltYWdlOjpXaWR0aAAxOTLTrCEIAAAAGXRFWHRUaHVtYjo6TWltZXR5cGUAaW1hZ2UvcG5nP7JWTgAAABd0RVh0VGh1bWI6Ok1UaW1lADE2OTQ2MzUwMjKTECoKAAAAD3RFWHRUaHVtYjo6U2l6ZQAwQkKUoj7sAAAAVnRFWHRUaHVtYjo6VVJJAGZpbGU6Ly8vbW50bG9nL2Zhdmljb25zLzIwMjMtMDktMTMvYjY1MDJmYmMyZWIzMmRmNGM1NDc5Nzg3ZWI0ZDExYzIuaWNvLnBuZ2mnJHsAAAAASUVORK5CYII="
|
|
|
|
|
5 |
DATASET_ARXIV_SCAN_PAPERS = "IAMJB/scanned-arxiv-papers-id"
|
6 |
DATASET_CONFERENCE_PAPERS = "IAMJB/paper_conference_aggregate"
|
7 |
DATASET_DAILY_PAPERS = "hysts-bot-data/daily-papers"
|
|
|
2 |
COLM_ICO = "data:image/svg+xml;base64,PCEtLSBmYXZpY29uLnN2ZyAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDx0ZXh0IHk9IjMyIiBmb250LXNpemU9IjMyIj7wn6aZPC90ZXh0Pgo8L3N2Zz4="
|
3 |
DEFAULT_ICO = NEURIPS_ICO
|
4 |
MICCAI24ICO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF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8xaWzC9Tplk3L30g+d7mXsz0d/woADzAAoYhVx2PH+hK0X76OnDwjEhZoIGXF80FFdQAYACCiaDYzdYGYSUjWMTFK+YqXbNNhPPN58XWNFYWFS+CNUiE+w4iG44dnyF8QmAtyVsZF3EhXRKj101X1yiTjJyKRiBWYKBBKIZNLUZC5CM6uTqSE3Tj8QxNAiAZxhgIAIFr1PO3EmAfvHe9yJzJ+sr0097vKUmO57d49RFglcs1FqG44AyaaxUdbPgTLh0AYIgalKwCAjE8G/Kw8FhwfOV3WMHDDVJBPTLIntL61H0HPEK61taJibTH0WjU27DyEj/dux0KNmgMv/AkA5E6vrZuP1aM4W7ur8WilWR+4K1TW3ApUlWdDqVQiZ+U7aLnYAYtlKVLzTXC5RvB02OWAd6ATAMioZ7j51zturm6fRUEeXSWba3t+YlWJLSr9YkgUCoTDYcjzi/FNbSOeuZ04f7ENAInMvtFn7z/ZfLXJ9zyCmw4aGJrgzlGRhGMIBSUUg903cP3sKdSfPIrR+33osz1wYTq8H4DwMsqeSe+VngH/8s83GVMsFnP5I++UIU0VEVt/6cLNtmbY7Q9RZ22C1+fnhOngRnhsHTMEzGwo1fK0LF3N/reTKtYVpYmGHU7hzWM9Ab1+oXTQ6UEwGLoNPvwFRmx/vBplBq8rzpAuk0re5Xg8D02Od0Ci2AZBGIXb3Qh4Jl+3/wuO70L+2XcHiQAAAABJRU5ErkJggg=="
|
6 |
+
|
7 |
DATASET_ARXIV_SCAN_PAPERS = "IAMJB/scanned-arxiv-papers-id"
|
8 |
DATASET_CONFERENCE_PAPERS = "IAMJB/paper_conference_aggregate"
|
9 |
DATASET_DAILY_PAPERS = "hysts-bot-data/daily-papers"
|
df/PaperCentral.py
CHANGED
@@ -9,6 +9,7 @@ from constants import (
|
|
9 |
COLM_ICO,
|
10 |
DEFAULT_ICO,
|
11 |
MICCAI24ICO,
|
|
|
12 |
)
|
13 |
import gradio as gr
|
14 |
from utils import load_and_process
|
@@ -21,37 +22,25 @@ class PaperCentral:
|
|
21 |
A class to manage and process paper data for display in a Gradio Dataframe component.
|
22 |
"""
|
23 |
|
24 |
-
CONFERENCES = [
|
25 |
-
"ACL2023",
|
26 |
-
"ACL2024",
|
27 |
-
"COLING2024",
|
28 |
-
"CVPR2023",
|
29 |
-
"CVPR2024",
|
30 |
-
"ECCV2024",
|
31 |
-
"EMNLP2023",
|
32 |
-
"NAACL2023",
|
33 |
-
"NeurIPS2023",
|
34 |
-
"NeurIPS2023 D&B",
|
35 |
-
"COLM2024",
|
36 |
-
"MICCAI2024",
|
37 |
-
"ACMMM2024",
|
38 |
-
]
|
39 |
CONFERENCES_ICONS = {
|
40 |
-
"
|
41 |
-
"
|
|
|
|
|
42 |
"COLING2024": 'https://aclanthology.org/aclicon.ico',
|
43 |
-
"CVPR2023": "https://openaccess.thecvf.com/favicon.ico",
|
44 |
"CVPR2024": "https://openaccess.thecvf.com/favicon.ico",
|
|
|
|
|
|
|
45 |
"ECCV2024": "https://openaccess.thecvf.com/favicon.ico",
|
46 |
"EMNLP2023": 'https://aclanthology.org/aclicon.ico',
|
47 |
"NAACL2023": 'https://aclanthology.org/aclicon.ico',
|
48 |
"NeurIPS2023": NEURIPS_ICO,
|
49 |
"NeurIPS2023 D&B": NEURIPS_ICO,
|
50 |
-
"COLM2024": COLM_ICO,
|
51 |
-
"MICCAI2024": MICCAI24ICO,
|
52 |
-
"ACMMM2024": "https://2024.acmmm.org/favicon.ico",
|
53 |
}
|
54 |
|
|
|
|
|
55 |
# Class-level constants defining columns and their data types
|
56 |
COLUMNS_START_PAPER_PAGE: List[str] = [
|
57 |
'date',
|
@@ -71,6 +60,7 @@ class PaperCentral:
|
|
71 |
'num_comments',
|
72 |
'github',
|
73 |
'github_stars',
|
|
|
74 |
'conference_name',
|
75 |
'id',
|
76 |
'type',
|
@@ -96,6 +86,7 @@ class PaperCentral:
|
|
96 |
'type': 'str',
|
97 |
'authors': 'str',
|
98 |
'github_stars': 'number',
|
|
|
99 |
}
|
100 |
|
101 |
# Mapping for renaming columns for display purposes
|
@@ -154,7 +145,7 @@ class PaperCentral:
|
|
154 |
paper_central_df: pd.DataFrame = load_and_process(DATASET_PAPER_CENTRAL)[
|
155 |
['arxiv_id', 'categories', 'primary_category', 'date', 'upvotes', 'num_comments', 'github', 'num_models',
|
156 |
'num_datasets', 'num_spaces', 'id', 'proceedings', 'type',
|
157 |
-
'conference_name', 'title', 'paper_page', 'authors', 'github_stars']
|
158 |
]
|
159 |
|
160 |
# If arxiv published_date is weekend, switch to Monday
|
@@ -272,6 +263,12 @@ class PaperCentral:
|
|
272 |
f"<a href='{row['github']}'>github</a>"
|
273 |
)
|
274 |
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
return row
|
276 |
|
277 |
df = df.copy()
|
@@ -426,6 +423,11 @@ class PaperCentral:
|
|
426 |
columns_to_show.append('github_stars')
|
427 |
filtered_df = filtered_df[(filtered_df['github'] != "") & (filtered_df['github'].notnull())]
|
428 |
|
|
|
|
|
|
|
|
|
|
|
429 |
# Apply conference filtering
|
430 |
if conference_options:
|
431 |
columns_to_show = [col for col in columns_to_show if col not in ["date", "arxiv_id"]]
|
|
|
9 |
COLM_ICO,
|
10 |
DEFAULT_ICO,
|
11 |
MICCAI24ICO,
|
12 |
+
CORL_ICO,
|
13 |
)
|
14 |
import gradio as gr
|
15 |
from utils import load_and_process
|
|
|
22 |
A class to manage and process paper data for display in a Gradio Dataframe component.
|
23 |
"""
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
CONFERENCES_ICONS = {
|
26 |
+
"CoRL2024": CORL_ICO,
|
27 |
+
"ACMMM2024": "https://2024.acmmm.org/favicon.ico",
|
28 |
+
"MICCAI2024": MICCAI24ICO,
|
29 |
+
"COLM2024": COLM_ICO,
|
30 |
"COLING2024": 'https://aclanthology.org/aclicon.ico',
|
|
|
31 |
"CVPR2024": "https://openaccess.thecvf.com/favicon.ico",
|
32 |
+
"ACL2024": 'https://aclanthology.org/aclicon.ico',
|
33 |
+
"ACL2023": 'https://aclanthology.org/aclicon.ico',
|
34 |
+
"CVPR2023": "https://openaccess.thecvf.com/favicon.ico",
|
35 |
"ECCV2024": "https://openaccess.thecvf.com/favicon.ico",
|
36 |
"EMNLP2023": 'https://aclanthology.org/aclicon.ico',
|
37 |
"NAACL2023": 'https://aclanthology.org/aclicon.ico',
|
38 |
"NeurIPS2023": NEURIPS_ICO,
|
39 |
"NeurIPS2023 D&B": NEURIPS_ICO,
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
+
CONFERENCES = list(CONFERENCES_ICONS.keys())
|
43 |
+
|
44 |
# Class-level constants defining columns and their data types
|
45 |
COLUMNS_START_PAPER_PAGE: List[str] = [
|
46 |
'date',
|
|
|
60 |
'num_comments',
|
61 |
'github',
|
62 |
'github_stars',
|
63 |
+
'project_page',
|
64 |
'conference_name',
|
65 |
'id',
|
66 |
'type',
|
|
|
86 |
'type': 'str',
|
87 |
'authors': 'str',
|
88 |
'github_stars': 'number',
|
89 |
+
'project_page': 'markdown',
|
90 |
}
|
91 |
|
92 |
# Mapping for renaming columns for display purposes
|
|
|
145 |
paper_central_df: pd.DataFrame = load_and_process(DATASET_PAPER_CENTRAL)[
|
146 |
['arxiv_id', 'categories', 'primary_category', 'date', 'upvotes', 'num_comments', 'github', 'num_models',
|
147 |
'num_datasets', 'num_spaces', 'id', 'proceedings', 'type',
|
148 |
+
'conference_name', 'title', 'paper_page', 'authors', 'github_stars', 'project_page']
|
149 |
]
|
150 |
|
151 |
# If arxiv published_date is weekend, switch to Monday
|
|
|
263 |
f"<a href='{row['github']}'>github</a>"
|
264 |
)
|
265 |
|
266 |
+
if 'project_page' in row and pd.notna(row['project_page']) and row["project_page"]:
|
267 |
+
row['project_page'] = (
|
268 |
+
f"<a href='{row['project_page']}'>{row['project_page']}</a>"
|
269 |
+
)
|
270 |
+
|
271 |
+
|
272 |
return row
|
273 |
|
274 |
df = df.copy()
|
|
|
423 |
columns_to_show.append('github_stars')
|
424 |
filtered_df = filtered_df[(filtered_df['github'] != "") & (filtered_df['github'].notnull())]
|
425 |
|
426 |
+
if "project page" in hf_options:
|
427 |
+
if 'project_page' not in columns_to_show:
|
428 |
+
columns_to_show.append('project_page')
|
429 |
+
filtered_df = filtered_df[(filtered_df['project_page'] != "") & (filtered_df['project_page'].notnull())]
|
430 |
+
|
431 |
# Apply conference filtering
|
432 |
if conference_options:
|
433 |
columns_to_show = [col for col in columns_to_show if col not in ["date", "arxiv_id"]]
|
pr_paper_central_tab.py
CHANGED
@@ -84,7 +84,7 @@ def create_pr_in_hf_dataset(new_entry, oauth_token: gr.OAuthToken):
|
|
84 |
|
85 |
def pr_paper_central_tab(paper_central_df):
|
86 |
with gr.Column():
|
87 |
-
gr.Markdown("##
|
88 |
|
89 |
# Message to prompt user to log in
|
90 |
login_prompt = gr.Markdown("Please log in to proceed.", visible=False)
|
@@ -106,6 +106,7 @@ def pr_paper_central_tab(paper_central_df):
|
|
106 |
{'name': 'conference_name', 'label': 'Conference Name'},
|
107 |
{'name': 'type_', 'label': 'Type'}, # Renamed from 'type' to 'type_'
|
108 |
{'name': 'proceedings', 'label': 'Proceedings'},
|
|
|
109 |
# Add or remove fields here as needed
|
110 |
]
|
111 |
|
@@ -183,7 +184,12 @@ def pr_paper_central_tab(paper_central_df):
|
|
183 |
)
|
184 |
|
185 |
# Function to create PR
|
186 |
-
def create_pr(arxiv_id,
|
|
|
|
|
|
|
|
|
|
|
187 |
oauth_token: Optional[gr.OAuthToken] = None):
|
188 |
if oauth_token is None:
|
189 |
return gr.update(value="Please log in first.", visible=True)
|
@@ -193,7 +199,7 @@ def pr_paper_central_tab(paper_central_df):
|
|
193 |
'github': github,
|
194 |
'conference_name': conference_name,
|
195 |
'type': type_,
|
196 |
-
'
|
197 |
}
|
198 |
# Now add this to the dataset and create a PR
|
199 |
pr_url = create_pr_in_hf_dataset(new_entry, oauth_token)
|
|
|
84 |
|
85 |
def pr_paper_central_tab(paper_central_df):
|
86 |
with gr.Column():
|
87 |
+
gr.Markdown("## Edit papers")
|
88 |
|
89 |
# Message to prompt user to log in
|
90 |
login_prompt = gr.Markdown("Please log in to proceed.", visible=False)
|
|
|
106 |
{'name': 'conference_name', 'label': 'Conference Name'},
|
107 |
{'name': 'type_', 'label': 'Type'}, # Renamed from 'type' to 'type_'
|
108 |
{'name': 'proceedings', 'label': 'Proceedings'},
|
109 |
+
{'name': 'project_page', 'label': 'Project page'},
|
110 |
# Add or remove fields here as needed
|
111 |
]
|
112 |
|
|
|
184 |
)
|
185 |
|
186 |
# Function to create PR
|
187 |
+
def create_pr(arxiv_id,
|
188 |
+
github,
|
189 |
+
conference_name,
|
190 |
+
type_,
|
191 |
+
proceedings,
|
192 |
+
project_page,
|
193 |
oauth_token: Optional[gr.OAuthToken] = None):
|
194 |
if oauth_token is None:
|
195 |
return gr.update(value="Please log in first.", visible=True)
|
|
|
199 |
'github': github,
|
200 |
'conference_name': conference_name,
|
201 |
'type': type_,
|
202 |
+
'project_page': project_page
|
203 |
}
|
204 |
# Now add this to the dataset and create a PR
|
205 |
pr_url = create_pr_in_hf_dataset(new_entry, oauth_token)
|