Spaces:
Running
Running
MM2024
Browse files- app.py +8 -6
- df/PaperCentral.py +2 -0
app.py
CHANGED
@@ -88,7 +88,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
88 |
# Define the checkbox group for Conference options
|
89 |
conference_options = gr.CheckboxGroup(
|
90 |
label="Conference options",
|
91 |
-
choices=["
|
92 |
)
|
93 |
with gr.Row():
|
94 |
# Define a Textbox for author search
|
@@ -262,15 +262,16 @@ with gr.Blocks(css="style.css") as demo:
|
|
262 |
conference_options_list,
|
263 |
author_search_input,
|
264 |
title_search_input,
|
265 |
-
|
266 |
)
|
267 |
visible = False
|
268 |
|
269 |
calendar_update = gr.update(visible=visible)
|
270 |
next_day_btn_update = gr.update(visible=visible)
|
271 |
prev_day_btn_update = gr.update(visible=visible)
|
|
|
272 |
|
273 |
-
return paper_central_component_update, cat_options_update, calendar_update, next_day_btn_update, prev_day_btn_update
|
274 |
|
275 |
|
276 |
# Function to handle category options change
|
@@ -305,8 +306,9 @@ with gr.Blocks(css="style.css") as demo:
|
|
305 |
calendar_update = gr.update(visible=visible)
|
306 |
next_day_btn_update = gr.update(visible=visible)
|
307 |
prev_day_btn_update = gr.update(visible=visible)
|
|
|
308 |
|
309 |
-
return paper_central_component_update, conference_options_update, calendar_update, next_day_btn_update, prev_day_btn_update
|
310 |
|
311 |
|
312 |
# Include date_range_radio in the inputs
|
@@ -365,14 +367,14 @@ with gr.Blocks(css="style.css") as demo:
|
|
365 |
conference_options.change(
|
366 |
fn=on_conference_options_change,
|
367 |
inputs=inputs,
|
368 |
-
outputs=[paper_central_component, cat_options, calendar, next_day_btn, prev_day_btn],
|
369 |
)
|
370 |
|
371 |
# Event chaining for category options change
|
372 |
cat_options.change(
|
373 |
fn=on_cat_options_change,
|
374 |
inputs=inputs,
|
375 |
-
outputs=[paper_central_component, conference_options, calendar, next_day_btn, prev_day_btn],
|
376 |
)
|
377 |
|
378 |
# Set up the event listener for the date range radio button change
|
|
|
88 |
# Define the checkbox group for Conference options
|
89 |
conference_options = gr.CheckboxGroup(
|
90 |
label="Conference options",
|
91 |
+
choices=["ALL"] + PaperCentral.CONFERENCES
|
92 |
)
|
93 |
with gr.Row():
|
94 |
# Define a Textbox for author search
|
|
|
262 |
conference_options_list,
|
263 |
author_search_input,
|
264 |
title_search_input,
|
265 |
+
None,
|
266 |
)
|
267 |
visible = False
|
268 |
|
269 |
calendar_update = gr.update(visible=visible)
|
270 |
next_day_btn_update = gr.update(visible=visible)
|
271 |
prev_day_btn_update = gr.update(visible=visible)
|
272 |
+
date_range_option_update = gr.update(visible=visible, value=None)
|
273 |
|
274 |
+
return paper_central_component_update, cat_options_update, calendar_update, next_day_btn_update, prev_day_btn_update, date_range_option_update
|
275 |
|
276 |
|
277 |
# Function to handle category options change
|
|
|
306 |
calendar_update = gr.update(visible=visible)
|
307 |
next_day_btn_update = gr.update(visible=visible)
|
308 |
prev_day_btn_update = gr.update(visible=visible)
|
309 |
+
date_range_option_update = gr.update(visible=visible)
|
310 |
|
311 |
+
return paper_central_component_update, conference_options_update, calendar_update, next_day_btn_update, prev_day_btn_update, date_range_option_update
|
312 |
|
313 |
|
314 |
# Include date_range_radio in the inputs
|
|
|
367 |
conference_options.change(
|
368 |
fn=on_conference_options_change,
|
369 |
inputs=inputs,
|
370 |
+
outputs=[paper_central_component, cat_options, calendar, next_day_btn, prev_day_btn, date_range_radio],
|
371 |
)
|
372 |
|
373 |
# Event chaining for category options change
|
374 |
cat_options.change(
|
375 |
fn=on_cat_options_change,
|
376 |
inputs=inputs,
|
377 |
+
outputs=[paper_central_component, conference_options, calendar, next_day_btn, prev_day_btn, date_range_radio],
|
378 |
)
|
379 |
|
380 |
# Set up the event listener for the date range radio button change
|
df/PaperCentral.py
CHANGED
@@ -34,6 +34,7 @@ class PaperCentral:
|
|
34 |
"NeurIPS2023 D&B",
|
35 |
"COLM2024",
|
36 |
"MICCAI2024",
|
|
|
37 |
]
|
38 |
CONFERENCES_ICONS = {
|
39 |
"ACL2023": 'https://aclanthology.org/aclicon.ico',
|
@@ -48,6 +49,7 @@ class PaperCentral:
|
|
48 |
"NeurIPS2023 D&B": NEURIPS_ICO,
|
49 |
"COLM2024": COLM_ICO,
|
50 |
"MICCAI2024": MICCAI24ICO,
|
|
|
51 |
}
|
52 |
|
53 |
# Class-level constants defining columns and their data types
|
|
|
34 |
"NeurIPS2023 D&B",
|
35 |
"COLM2024",
|
36 |
"MICCAI2024",
|
37 |
+
"ACMM2024",
|
38 |
]
|
39 |
CONFERENCES_ICONS = {
|
40 |
"ACL2023": 'https://aclanthology.org/aclicon.ico',
|
|
|
49 |
"NeurIPS2023 D&B": NEURIPS_ICO,
|
50 |
"COLM2024": COLM_ICO,
|
51 |
"MICCAI2024": MICCAI24ICO,
|
52 |
+
"ACMM2024": "https://2024.acmmm.org/favicon.ico",
|
53 |
}
|
54 |
|
55 |
# Class-level constants defining columns and their data types
|