Update app.py
Browse files
app.py
CHANGED
@@ -351,6 +351,92 @@ footer p {
|
|
351 |
transform: translateY(1px);
|
352 |
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
|
353 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
"""
|
355 |
|
356 |
# Create the Gradio Interface
|
@@ -409,7 +495,7 @@ with gr.Blocks(css=css_tech_theme) as demo:
|
|
409 |
<h2>Submit Your Predictions</h2>
|
410 |
<p>Upload your prediction file and provide your model name to evaluate and submit to the leaderboard.</p>
|
411 |
</div>
|
412 |
-
""")
|
413 |
with gr.Row(elem_id="submission-fields"):
|
414 |
file_input = gr.File(label="Upload Prediction CSV", file_types=[".csv"], interactive=True)
|
415 |
model_name_input = gr.Textbox(label="Model Name", placeholder="Enter your model name")
|
|
|
351 |
transform: translateY(1px);
|
352 |
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
|
353 |
}
|
354 |
+
|
355 |
+
/* Submission Section Styling */
|
356 |
+
.submission-section {
|
357 |
+
margin: 40px auto;
|
358 |
+
padding: 30px;
|
359 |
+
background: linear-gradient(135deg, #ffffff, #f9f9ff);
|
360 |
+
border-radius: 12px;
|
361 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
362 |
+
max-width: 800px;
|
363 |
+
text-align: center;
|
364 |
+
}
|
365 |
+
|
366 |
+
.submission-section h2 {
|
367 |
+
font-size: 2.5em;
|
368 |
+
color: #6a1b9a;
|
369 |
+
margin-bottom: 20px;
|
370 |
+
font-weight: bold;
|
371 |
+
}
|
372 |
+
|
373 |
+
.submission-section p {
|
374 |
+
font-size: 1.2em;
|
375 |
+
color: #333;
|
376 |
+
margin-bottom: 30px;
|
377 |
+
}
|
378 |
+
|
379 |
+
#submission-fields {
|
380 |
+
display: flex;
|
381 |
+
flex-direction: column;
|
382 |
+
gap: 20px;
|
383 |
+
align-items: center;
|
384 |
+
}
|
385 |
+
|
386 |
+
#submission-fields input[type="file"],
|
387 |
+
#submission-fields input[type="text"] {
|
388 |
+
width: 90%;
|
389 |
+
max-width: 400px;
|
390 |
+
padding: 12px 15px;
|
391 |
+
font-size: 1em;
|
392 |
+
border: 2px solid #d3bce8;
|
393 |
+
border-radius: 8px;
|
394 |
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
395 |
+
transition: border-color 0.3s ease;
|
396 |
+
}
|
397 |
+
|
398 |
+
#submission-fields input[type="file"]:focus,
|
399 |
+
#submission-fields input[type="text"]:focus {
|
400 |
+
border-color: #6a1b9a;
|
401 |
+
outline: none;
|
402 |
+
box-shadow: 0 0 5px rgba(106, 27, 154, 0.4);
|
403 |
+
}
|
404 |
+
|
405 |
+
#submission-results {
|
406 |
+
margin-top: 20px;
|
407 |
+
text-align: center;
|
408 |
+
}
|
409 |
+
|
410 |
+
#submission-buttons {
|
411 |
+
display: flex;
|
412 |
+
justify-content: center;
|
413 |
+
gap: 15px;
|
414 |
+
margin-top: 20px;
|
415 |
+
}
|
416 |
+
|
417 |
+
#submission-buttons button {
|
418 |
+
padding: 10px 20px;
|
419 |
+
font-size: 1em;
|
420 |
+
color: #ffffff;
|
421 |
+
background: #6a1b9a;
|
422 |
+
border: none;
|
423 |
+
border-radius: 30px;
|
424 |
+
cursor: pointer;
|
425 |
+
font-weight: bold;
|
426 |
+
transition: background 0.3s ease, transform 0.3s ease;
|
427 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
428 |
+
}
|
429 |
+
|
430 |
+
#submission-buttons button:hover {
|
431 |
+
background: #8c52d3;
|
432 |
+
transform: scale(1.05);
|
433 |
+
}
|
434 |
+
|
435 |
+
#submission-buttons button:active {
|
436 |
+
background: #5e1287;
|
437 |
+
transform: scale(0.98);
|
438 |
+
}
|
439 |
+
|
440 |
"""
|
441 |
|
442 |
# Create the Gradio Interface
|
|
|
495 |
<h2>Submit Your Predictions</h2>
|
496 |
<p>Upload your prediction file and provide your model name to evaluate and submit to the leaderboard.</p>
|
497 |
</div>
|
498 |
+
""")
|
499 |
with gr.Row(elem_id="submission-fields"):
|
500 |
file_input = gr.File(label="Upload Prediction CSV", file_types=[".csv"], interactive=True)
|
501 |
model_name_input = gr.Textbox(label="Model Name", placeholder="Enter your model name")
|