SondosMB commited on
Commit
b20a5c6
·
verified ·
1 Parent(s): d0733bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -53
app.py CHANGED
@@ -353,88 +353,69 @@ footer p {
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
  """
@@ -505,7 +486,7 @@ with gr.Blocks(css=css_tech_theme) as demo:
505
 
506
  with gr.Row(elem_id="submission-buttons"):
507
  eval_button = gr.Button("Evaluate")
508
- submit_button = gr.Button("Prove and Submit to Leaderboard", visible=False)
509
  eval_status = gr.Textbox(label="Evaluation Status", interactive=False)
510
 
511
  # Define the functions outside the `with` block
 
353
  }
354
 
355
  /* Submission Section Styling */
356
+ /* Input Fields Styling */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  #submission-fields input[type="file"],
358
  #submission-fields input[type="text"] {
359
  width: 90%;
360
+ max-width: 450px;
361
  padding: 12px 15px;
362
  font-size: 1em;
363
+ border: 2px solid #d3bce8; /* Light purple border */
364
+ border-radius: 10px;
365
+ background: #ffffff;
366
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
367
+ transition: all 0.3s ease;
368
+ }
369
+
370
+ #submission-fields input[type="file"]:hover,
371
+ #submission-fields input[type="text"]:hover {
372
+ border-color: #6a1b9a; /* Darker purple on hover */
373
  }
374
 
375
  #submission-fields input[type="file"]:focus,
376
  #submission-fields input[type="text"]:focus {
377
+ border-color: #6a1b9a; /* Darker purple on focus */
378
  outline: none;
379
+ box-shadow: 0 0 8px rgba(106, 27, 154, 0.5); /* Glow effect */
 
 
 
 
 
380
  }
381
 
382
+ /* Evaluation Status Styling */
383
+ #evaluation-status {
384
+ margin-top: 15px;
385
+ padding: 10px 20px;
386
+ font-size: 1em;
387
+ border-radius: 8px;
388
+ border: 2px solid #6a1b9a; /* Matches the hover color */
389
+ background: #f9f7fd; /* Subtle purple background */
390
+ color: #333;
391
+ font-weight: bold;
392
+ box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
393
  }
394
 
395
+ /* Buttons Styling */
396
  #submission-buttons button {
397
+ padding: 12px 25px;
398
+ font-size: 1.1em;
399
  color: #ffffff;
400
  background: #6a1b9a;
401
  border: none;
402
  border-radius: 30px;
403
  cursor: pointer;
404
  font-weight: bold;
405
+ transition: all 0.3s ease;
406
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
407
  }
408
 
409
  #submission-buttons button:hover {
410
+ background: #8c52d3; /* Slightly lighter purple */
411
  transform: scale(1.05);
412
+ box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
413
  }
414
 
415
  #submission-buttons button:active {
416
+ background: #5e1287; /* Darker purple */
417
  transform: scale(0.98);
418
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
419
  }
420
 
421
  """
 
486
 
487
  with gr.Row(elem_id="submission-buttons"):
488
  eval_button = gr.Button("Evaluate")
489
+ submit_button = gr.Button("Prove and Submit to Leaderboard", elem_id="evaluation-status", visible=False)
490
  eval_status = gr.Textbox(label="Evaluation Status", interactive=False)
491
 
492
  # Define the functions outside the `with` block