Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -28,17 +28,6 @@ new_header_html = """
|
|
28 |
google_style_css = """
|
29 |
/* Add this rule to your google_style_css string */
|
30 |
|
31 |
-
html.dark .content-card {
|
32 |
-
background-color: #fff !important;
|
33 |
-
}
|
34 |
-
|
35 |
-
/* You may also need to force the text color to be dark */
|
36 |
-
html.dark .content-card h2,
|
37 |
-
html.dark .content-card h3,
|
38 |
-
html.dark .content-card h3 .title,
|
39 |
-
html.dark .content-card p {
|
40 |
-
color: #2f3b7d !important;
|
41 |
-
}
|
42 |
/* Citation Block */
|
43 |
.citation-block {
|
44 |
position: relative;
|
@@ -97,7 +86,7 @@ div.svelte-1nguped {
|
|
97 |
padding: 60px 0;
|
98 |
}
|
99 |
.content-card {
|
100 |
-
background-color: #fff;
|
101 |
border-radius: 12px;
|
102 |
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
|
103 |
padding: 40px;
|
@@ -275,6 +264,16 @@ div[class*="gradio-container"] .prose td:not(:first-child) {
|
|
275 |
text-align: center;
|
276 |
}
|
277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
"""
|
279 |
|
280 |
introduction_text = """
|
@@ -290,8 +289,22 @@ with gr.Blocks(theme=gr.themes.Default(), title="Sahara Benchmark Leaderboards",
|
|
290 |
gr.Button("Official Website", link="https://africa.dlnlp.ai/sahara", elem_classes=['flat-navy-button'])
|
291 |
gr.Button("ACL 2025 Paper", link="https://aclanthology.org/2025.acl-long.1572", elem_classes=['flat-navy-button'])
|
292 |
gr.Button("Tasks", link="https://africa.dlnlp.ai/sahara/tasks", elem_classes=['flat-navy-button'])
|
|
|
|
|
293 |
gr.Button("HF Dataset Repo", link="https://huggingface.co/datasets/UBC-NLP/sahara_benchmark", elem_classes=['flat-navy-button'])
|
294 |
gr.Button("GitHub Repo", link="https://github.com/UBC-NLP/sahara", elem_classes=['flat-navy-button'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
# === UPDATED BUTTONS END ===
|
296 |
|
297 |
with gr.Group(elem_classes="content-card"):
|
|
|
28 |
google_style_css = """
|
29 |
/* Add this rule to your google_style_css string */
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
/* Citation Block */
|
32 |
.citation-block {
|
33 |
position: relative;
|
|
|
86 |
padding: 60px 0;
|
87 |
}
|
88 |
.content-card {
|
89 |
+
background-color: #fff !important;
|
90 |
border-radius: 12px;
|
91 |
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
|
92 |
padding: 40px;
|
|
|
264 |
text-align: center;
|
265 |
}
|
266 |
|
267 |
+
|
268 |
+
|
269 |
+
html.dark .content-card {
|
270 |
+
background-color: #fff !important;
|
271 |
+
}
|
272 |
+
|
273 |
+
div[class*="gradio-container"] .prose * {
|
274 |
+
color: #000;
|
275 |
+
}
|
276 |
+
|
277 |
"""
|
278 |
|
279 |
introduction_text = """
|
|
|
289 |
gr.Button("Official Website", link="https://africa.dlnlp.ai/sahara", elem_classes=['flat-navy-button'])
|
290 |
gr.Button("ACL 2025 Paper", link="https://aclanthology.org/2025.acl-long.1572", elem_classes=['flat-navy-button'])
|
291 |
gr.Button("Tasks", link="https://africa.dlnlp.ai/sahara/tasks", elem_classes=['flat-navy-button'])
|
292 |
+
# gr.Button("Submission Instructions", link="https://africa.dlnlp.ai/sahara/instructions", elem_classes=['flat-navy-button'])
|
293 |
+
# gr.Button("New Submission", link="https://africa.dlnlp.ai/sahara/submit", elem_classes=['flat-navy-button'])
|
294 |
gr.Button("HF Dataset Repo", link="https://huggingface.co/datasets/UBC-NLP/sahara_benchmark", elem_classes=['flat-navy-button'])
|
295 |
gr.Button("GitHub Repo", link="https://github.com/UBC-NLP/sahara", elem_classes=['flat-navy-button'])
|
296 |
+
# These buttons will now show an alert message
|
297 |
+
# submission_btn = gr.Button("Submission Instructions", elem_classes=['flat-navy-button'])
|
298 |
+
# new_submission_btn = gr.Button("New Submission", elem_classes=['flat-navy-button'])
|
299 |
+
# github_btn = gr.Button("GitHub Repo", elem_classes=['flat-navy-button'])
|
300 |
+
# # Function to display the alert
|
301 |
+
# def show_coming_soon_alert():
|
302 |
+
# gr.Info("Stay tuned! It will be ready soon.")
|
303 |
+
|
304 |
+
# # Link the click event of each button to the alert function
|
305 |
+
# submission_btn.click(fn=show_coming_soon_alert)
|
306 |
+
# new_submission_btn.click(fn=show_coming_soon_alert)
|
307 |
+
# github_btn.click(fn=show_coming_soon_alert)
|
308 |
# === UPDATED BUTTONS END ===
|
309 |
|
310 |
with gr.Group(elem_classes="content-card"):
|