Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ custom_head_html = """
|
|
9 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
|
10 |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
11 |
<link rel="stylesheet" type="text/css" href="./public/css/style.min.css">
|
12 |
-
<script defer src="
|
13 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
14 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
15 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Rubik:wght@400;600&display=swap" rel="stylesheet">
|
@@ -25,6 +25,19 @@ new_header_html = """
|
|
25 |
"""
|
26 |
|
27 |
google_style_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
div.gradio-container-5-37-0{
|
29 |
background:#FFFBF5 !important;
|
30 |
}
|
@@ -179,6 +192,15 @@ introduction_text = """
|
|
179 |
with gr.Blocks(css=google_style_css) as demo:
|
180 |
# Use elem_classes to apply our custom CSS to this group
|
181 |
gr.HTML(new_header_html)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
# gr.Markdown(introduction_text)
|
183 |
# with gr.Group(elem_classes="content-card"):
|
184 |
# gr.Markdown(introduction_text)
|
@@ -223,8 +245,8 @@ with gr.Blocks(css=google_style_css) as demo:
|
|
223 |
df = get_lang_table(lang_name)
|
224 |
return df_to_html(df)
|
225 |
lang_dropdown.change(update_lang_table, lang_dropdown, lang_table_component)
|
226 |
-
|
227 |
-
|
228 |
|
229 |
if __name__ == "__main__":
|
230 |
-
demo.launch(
|
|
|
9 |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
|
10 |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
11 |
<link rel="stylesheet" type="text/css" href="./public/css/style.min.css">
|
12 |
+
<script defer src="./public/js/script.js"></script>
|
13 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
14 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
15 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Rubik:wght@400;600&display=swap" rel="stylesheet">
|
|
|
25 |
"""
|
26 |
|
27 |
google_style_css = """
|
28 |
+
|
29 |
+
.flat-navy-button {
|
30 |
+
background-color: #117b75 !important; /* Navy Blue */
|
31 |
+
color: #fff !important;
|
32 |
+
font-weight: bold !important;
|
33 |
+
border-radius: 5px !important; /* Slightly rounded corners */
|
34 |
+
border: none !important;
|
35 |
+
box-shadow: none !important;
|
36 |
+
}
|
37 |
+
.flat-navy-button:hover {
|
38 |
+
background-color: #117b75 !important; /* Lighter navy for hover */
|
39 |
+
color: #e8850e !important;
|
40 |
+
}
|
41 |
div.gradio-container-5-37-0{
|
42 |
background:#FFFBF5 !important;
|
43 |
}
|
|
|
192 |
with gr.Blocks(css=google_style_css) as demo:
|
193 |
# Use elem_classes to apply our custom CSS to this group
|
194 |
gr.HTML(new_header_html)
|
195 |
+
# === UPDATED BUTTONS START ===
|
196 |
+
with gr.Row():
|
197 |
+
gr.Button("Official Website", link="https://africa.dlnlp.ai/sahara", elem_classes=['flat-navy-button'])
|
198 |
+
gr.Button("ACL 2025 Paper", link="https://arxiv.org/abs/2502.19582", elem_classes=['flat-navy-button'])
|
199 |
+
gr.Button("Tasks", link="https://africa.dlnlp.ai/sahara/tasks", elem_classes=['flat-navy-button'])
|
200 |
+
gr.Button("Submission Instructions", link="https://africa.dlnlp.ai/sahara/instructions", elem_classes=['flat-navy-button'])
|
201 |
+
gr.Button("New Submission", link="https://africa.dlnlp.ai/sahara/submit", elem_classes=['flat-navy-button'])
|
202 |
+
gr.Button("GitHub Repo", link="https://github.com/UBC-NLP/sahara", elem_classes=['flat-navy-button'])
|
203 |
+
# === UPDATED BUTTONS END ===
|
204 |
# gr.Markdown(introduction_text)
|
205 |
# with gr.Group(elem_classes="content-card"):
|
206 |
# gr.Markdown(introduction_text)
|
|
|
245 |
df = get_lang_table(lang_name)
|
246 |
return df_to_html(df)
|
247 |
lang_dropdown.change(update_lang_table, lang_dropdown, lang_table_component)
|
248 |
+
gr.HTML("<center><img src='https://africa.dlnlp.ai/sahara//img/sahara_web_sponsers.jpg' width='25%'> </center>")
|
249 |
+
|
250 |
|
251 |
if __name__ == "__main__":
|
252 |
+
demo.launch(share=True)
|