Spaces:
Running
Running
ok
Browse files- app.py +3 -0
- constants.py +1 -0
- df/PaperCentral.py +3 -0
app.py
CHANGED
@@ -374,6 +374,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
374 |
str: The echoed text.
|
375 |
"""
|
376 |
calendar = gr.update()
|
|
|
377 |
if request:
|
378 |
print("Request headers dictionary:", dict(request.headers))
|
379 |
print("IP address:", request.client.host)
|
@@ -381,6 +382,8 @@ with gr.Blocks(css="style.css") as demo:
|
|
381 |
print("Session hash:", request.session_hash)
|
382 |
if 'date' in request.query_params:
|
383 |
calendar = gr.update(value=request.query_params['date'])
|
|
|
|
|
384 |
|
385 |
return calendar
|
386 |
|
|
|
374 |
str: The echoed text.
|
375 |
"""
|
376 |
calendar = gr.update()
|
377 |
+
|
378 |
if request:
|
379 |
print("Request headers dictionary:", dict(request.headers))
|
380 |
print("IP address:", request.client.host)
|
|
|
382 |
print("Session hash:", request.session_hash)
|
383 |
if 'date' in request.query_params:
|
384 |
calendar = gr.update(value=request.query_params['date'])
|
385 |
+
if 'conference' in request.query_params:
|
386 |
+
calendar = gr.update(value=request.query_params['date'])
|
387 |
|
388 |
return calendar
|
389 |
|
constants.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
NEURIPS_ICO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAeFBMVEVHcExoRIuHYZ5oRItoRItoRItoRItoRItSN2loRItoRIuDXpxoRItoRIuSbKWRa6SRa6QCAAsAAAAAAAAAAAAAAAAAAAAAAAAAAACRa6SRa6QAAAAAAAAAAACRa6SRa6SRa6QAAAAAAAAAAACRa6QAAACRa6SRa6TWTNGBAAAAKHRSTlMAQBVQ9mKR0AgzfiGvcypL4BBmP11VbIQvd5JKcSFaOv95io2qjsjs/SKIogAAAT9JREFUeAHMwbUBAzAMBMB/C2wLAvsvmyYMfe7wZ8gh+E3Np6lMfLV0h+bwHFLEJ90lEFGZvcUcH6ayIri5ucLF8Iq6AZl0aROAKcSzw8G3NFYJbohnx+3Ybbbxw+msBHJfqp2DHAdhGAqgX1khRSKY2GAwJtBhOve/4aTNoisO0GfJ9srfGDOLYGKaSfGxpBWNbVtmr20cDR9xL6iydpp9ooncoCKZjNRRHf0eOkBsPI3xOPVnlhlmjG0WVDEMJQLmnuHmlMndO8+v3dqFUK6AipjFTUXZXyWiag5g2VO5egA+8cZgwekmWSz/TmTAMqThwrD26PA+zLzZWOdJhEwAwrPfhxLCAZjpaIY8+eMUIzTLMy7laiECVYaKqrf85u/CuuOIuLOGNSUUpB53jvpFisOFe8d+rCHgXkQK+Fb/W30Y/tu4vyAAAAAASUVORK5CYII="
|
|
|
2 |
DATASET_ARXIV_SCAN_PAPERS = "IAMJB/scanned-arxiv-papers-id"
|
3 |
DATASET_CONFERENCE_PAPERS = "IAMJB/paper_conference_aggregate"
|
4 |
DATASET_DAILY_PAPERS = "hysts-bot-data/daily-papers"
|
|
|
1 |
NEURIPS_ICO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAeFBMVEVHcExoRIuHYZ5oRItoRItoRItoRItoRItSN2loRItoRIuDXpxoRItoRIuSbKWRa6SRa6QCAAsAAAAAAAAAAAAAAAAAAAAAAAAAAACRa6SRa6QAAAAAAAAAAACRa6SRa6SRa6QAAAAAAAAAAACRa6QAAACRa6SRa6TWTNGBAAAAKHRSTlMAQBVQ9mKR0AgzfiGvcypL4BBmP11VbIQvd5JKcSFaOv95io2qjsjs/SKIogAAAT9JREFUeAHMwbUBAzAMBMB/C2wLAvsvmyYMfe7wZ8gh+E3Np6lMfLV0h+bwHFLEJ90lEFGZvcUcH6ayIri5ucLF8Iq6AZl0aROAKcSzw8G3NFYJbohnx+3Ybbbxw+msBHJfqp2DHAdhGAqgX1khRSKY2GAwJtBhOve/4aTNoisO0GfJ9srfGDOLYGKaSfGxpBWNbVtmr20cDR9xL6iydpp9ooncoCKZjNRRHf0eOkBsPI3xOPVnlhlmjG0WVDEMJQLmnuHmlMndO8+v3dqFUK6AipjFTUXZXyWiag5g2VO5egA+8cZgwekmWSz/TmTAMqThwrD26PA+zLzZWOdJhEwAwrPfhxLCAZjpaIY8+eMUIzTLMy7laiECVYaKqrf85u/CuuOIuLOGNSUUpB53jvpFisOFe8d+rCHgXkQK+Fb/W30Y/tu4vyAAAAAASUVORK5CYII="
|
2 |
+
COLM_ICO = "data:image/svg+xml;base64,PCEtLSBmYXZpY29uLnN2ZyAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDx0ZXh0IHk9IjMyIiBmb250LXNpemU9IjMyIj7wn6aZPC90ZXh0Pgo8L3N2Zz4="
|
3 |
DATASET_ARXIV_SCAN_PAPERS = "IAMJB/scanned-arxiv-papers-id"
|
4 |
DATASET_CONFERENCE_PAPERS = "IAMJB/paper_conference_aggregate"
|
5 |
DATASET_DAILY_PAPERS = "hysts-bot-data/daily-papers"
|
df/PaperCentral.py
CHANGED
@@ -6,6 +6,7 @@ from constants import (
|
|
6 |
DATASET_COMMUNITY_SCIENCE,
|
7 |
NEURIPS_ICO,
|
8 |
DATASET_PAPER_CENTRAL,
|
|
|
9 |
)
|
10 |
import gradio as gr
|
11 |
from utils import load_and_process
|
@@ -28,6 +29,7 @@ class PaperCentral:
|
|
28 |
"NAACL2023",
|
29 |
"NeurIPS2023",
|
30 |
"NeurIPS2023 D&B",
|
|
|
31 |
]
|
32 |
CONFERENCES_ICONS = {
|
33 |
"ACL2023": 'https://aclanthology.org/aclicon.ico',
|
@@ -40,6 +42,7 @@ class PaperCentral:
|
|
40 |
"NAACL2023": 'https://aclanthology.org/aclicon.ico',
|
41 |
"NeurIPS2023": NEURIPS_ICO,
|
42 |
"NeurIPS2023 D&B": NEURIPS_ICO,
|
|
|
43 |
}
|
44 |
|
45 |
# Class-level constants defining columns and their data types
|
|
|
6 |
DATASET_COMMUNITY_SCIENCE,
|
7 |
NEURIPS_ICO,
|
8 |
DATASET_PAPER_CENTRAL,
|
9 |
+
COLM_ICO,
|
10 |
)
|
11 |
import gradio as gr
|
12 |
from utils import load_and_process
|
|
|
29 |
"NAACL2023",
|
30 |
"NeurIPS2023",
|
31 |
"NeurIPS2023 D&B",
|
32 |
+
"COLM2024",
|
33 |
]
|
34 |
CONFERENCES_ICONS = {
|
35 |
"ACL2023": 'https://aclanthology.org/aclicon.ico',
|
|
|
42 |
"NAACL2023": 'https://aclanthology.org/aclicon.ico',
|
43 |
"NeurIPS2023": NEURIPS_ICO,
|
44 |
"NeurIPS2023 D&B": NEURIPS_ICO,
|
45 |
+
"COLM2024": COLM_ICO,
|
46 |
}
|
47 |
|
48 |
# Class-level constants defining columns and their data types
|