Update app.py
Browse files
app.py
CHANGED
|
@@ -262,82 +262,79 @@ import gradio as gr
|
|
| 262 |
import gradio as gr
|
| 263 |
|
| 264 |
# Custom CSS to match website style
|
|
|
|
| 265 |
css_tech_theme = """
|
| 266 |
body {
|
| 267 |
font-family: 'Roboto', sans-serif;
|
|
|
|
|
|
|
|
|
|
| 268 |
margin: 0;
|
| 269 |
padding: 0;
|
| 270 |
-
color: #333;
|
| 271 |
-
background: #f4f6fa;
|
| 272 |
}
|
|
|
|
| 273 |
.center-content {
|
| 274 |
display: flex;
|
| 275 |
flex-direction: column;
|
| 276 |
align-items: center;
|
| 277 |
justify-content: center;
|
| 278 |
text-align: center;
|
|
|
|
| 279 |
padding: 20px;
|
| 280 |
background: linear-gradient(135deg, #6a1b9a, #64b5f6);
|
| 281 |
color: #ffffff;
|
| 282 |
border-radius: 10px;
|
| 283 |
-
|
|
|
|
| 284 |
}
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
|
|
|
|
|
|
| 288 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
.center-content p {
|
| 290 |
font-size: 1.2em;
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
}
|
| 294 |
-
.center-content hr {
|
| 295 |
-
border: 1px solid #ffffff;
|
| 296 |
-
width: 80%;
|
| 297 |
-
margin: 20px 0;
|
| 298 |
}
|
|
|
|
| 299 |
.tabs {
|
| 300 |
-
|
| 301 |
-
justify-content: center;
|
| 302 |
-
margin: 20px 0;
|
| 303 |
-
}
|
| 304 |
-
.tab-button {
|
| 305 |
-
font-size: 1em;
|
| 306 |
-
padding: 10px 20px;
|
| 307 |
-
border: none;
|
| 308 |
-
background: #6a1b9a;
|
| 309 |
-
color: white;
|
| 310 |
-
cursor: pointer;
|
| 311 |
-
margin-right: 10px;
|
| 312 |
-
}
|
| 313 |
-
.tab-button.active {
|
| 314 |
-
background: #64b5f6;
|
| 315 |
}
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
padding: 20px;
|
| 319 |
background: #ffffff;
|
| 320 |
border-radius: 10px;
|
| 321 |
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
| 322 |
}
|
| 323 |
-
|
| 324 |
-
display: block;
|
| 325 |
-
}
|
| 326 |
#leaderboard {
|
| 327 |
-
max-width: 100%;
|
| 328 |
margin: 20px auto;
|
| 329 |
border-radius: 10px;
|
| 330 |
overflow: hidden;
|
| 331 |
border: 1px solid #e5eff2;
|
| 332 |
background: #f9f9f9;
|
| 333 |
}
|
|
|
|
| 334 |
footer {
|
| 335 |
text-align: center;
|
| 336 |
padding: 20px;
|
| 337 |
-
background: #
|
| 338 |
color: #ffffff;
|
| 339 |
-
border-top: 5px solid #64b5f6;
|
| 340 |
margin-top: 20px;
|
|
|
|
|
|
|
| 341 |
}
|
| 342 |
"""
|
| 343 |
|
|
|
|
| 262 |
import gradio as gr
|
| 263 |
|
| 264 |
# Custom CSS to match website style
|
| 265 |
+
# Define CSS to match a modern, professional design
|
| 266 |
css_tech_theme = """
|
| 267 |
body {
|
| 268 |
font-family: 'Roboto', sans-serif;
|
| 269 |
+
background-color: #f4f6fa;
|
| 270 |
+
color: #333333;
|
| 271 |
+
line-height: 1.8;
|
| 272 |
margin: 0;
|
| 273 |
padding: 0;
|
|
|
|
|
|
|
| 274 |
}
|
| 275 |
+
|
| 276 |
.center-content {
|
| 277 |
display: flex;
|
| 278 |
flex-direction: column;
|
| 279 |
align-items: center;
|
| 280 |
justify-content: center;
|
| 281 |
text-align: center;
|
| 282 |
+
margin: 40px auto;
|
| 283 |
padding: 20px;
|
| 284 |
background: linear-gradient(135deg, #6a1b9a, #64b5f6);
|
| 285 |
color: #ffffff;
|
| 286 |
border-radius: 10px;
|
| 287 |
+
max-width: 80%;
|
| 288 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
| 289 |
}
|
| 290 |
+
|
| 291 |
+
.center-content h1 {
|
| 292 |
+
font-size: 3em;
|
| 293 |
+
font-weight: bold;
|
| 294 |
+
margin-bottom: 10px;
|
| 295 |
}
|
| 296 |
+
|
| 297 |
+
.center-content h2 {
|
| 298 |
+
font-size: 1.8em;
|
| 299 |
+
margin: 10px 0 20px;
|
| 300 |
+
font-weight: 500;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
.center-content p {
|
| 304 |
font-size: 1.2em;
|
| 305 |
+
margin-bottom: 20px;
|
| 306 |
+
line-height: 1.6;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 307 |
}
|
| 308 |
+
|
| 309 |
.tabs {
|
| 310 |
+
margin-top: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 311 |
}
|
| 312 |
+
|
| 313 |
+
.gradio-container {
|
|
|
|
| 314 |
background: #ffffff;
|
| 315 |
border-radius: 10px;
|
| 316 |
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
| 317 |
+
padding: 20px;
|
| 318 |
+
max-width: 1200px;
|
| 319 |
+
margin: 0 auto;
|
| 320 |
}
|
| 321 |
+
|
|
|
|
|
|
|
| 322 |
#leaderboard {
|
|
|
|
| 323 |
margin: 20px auto;
|
| 324 |
border-radius: 10px;
|
| 325 |
overflow: hidden;
|
| 326 |
border: 1px solid #e5eff2;
|
| 327 |
background: #f9f9f9;
|
| 328 |
}
|
| 329 |
+
|
| 330 |
footer {
|
| 331 |
text-align: center;
|
| 332 |
padding: 20px;
|
| 333 |
+
background: #6a1b9a;
|
| 334 |
color: #ffffff;
|
|
|
|
| 335 |
margin-top: 20px;
|
| 336 |
+
font-size: 0.9em;
|
| 337 |
+
border-top: 5px solid #64b5f6;
|
| 338 |
}
|
| 339 |
"""
|
| 340 |
|