SondosMB commited on
Commit
c5a0735
·
verified ·
1 Parent(s): c755c1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -301
app.py CHANGED
@@ -453,304 +453,3 @@ with gr.Blocks(css=css_tech_theme) as demo:
453
  """)
454
 
455
  demo.launch()
456
-
457
-
458
-
459
- # # Custom CSS to match website style
460
- # # Define CSS to match a modern, professional design
461
- # # Define enhanced CSS for the entire layout
462
- # css_tech_theme = """
463
- # body {
464
- # font-family: 'Roboto', sans-serif;
465
- # background-color: #f4f6fa;
466
- # color: #333333;
467
- # margin: 0;
468
- # padding: 0;
469
- # }
470
-
471
- # /* Header Styling */
472
- # header {
473
- # text-align: center;
474
- # padding: 60px 20px;
475
- # background: linear-gradient(135deg, #6a1b9a, #64b5f6);
476
- # color: #ffffff;
477
- # border-radius: 12px;
478
- # margin-bottom: 30px;
479
- # box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
480
- # }
481
-
482
- # header h1 {
483
- # font-size: 3.5em;
484
- # font-weight: bold;
485
- # margin-bottom: 10px;
486
- # }
487
-
488
- # header h2 {
489
- # font-size: 2em;
490
- # margin-bottom: 15px;
491
- # }
492
-
493
- # header p {
494
- # font-size: 1.7em;
495
- # line-height: 1.8;
496
- # }
497
-
498
- # .header-buttons {
499
- # display: flex;
500
- # justify-content: center;
501
- # gap: 15px;
502
- # margin-top: 20px;
503
- # }
504
-
505
- # .header-buttons a {
506
- # text-decoration: none;
507
- # font-size: 1.1em;
508
- # padding: 15px 30px;
509
- # border-radius: 30px;
510
- # font-weight: bold;
511
- # background: #ffffff;
512
- # color: #6a1b9a;
513
- # transition: transform 0.3s, background 0.3s;
514
- # box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
515
- # }
516
-
517
- # .header-buttons a:hover {
518
- # background: #64b5f6;
519
- # color: #ffffff;
520
- # transform: scale(1.05);
521
- # }
522
-
523
- # /* Pre-Tabs Section */
524
- # .pre-tabs {
525
- # text-align: center;
526
- # padding: 40px 20px;
527
- # background: linear-gradient(135deg, #ffffff, #f9fafb);
528
- # border-top: 5px solid #64b5f6;
529
- # border-bottom: 5px solid #6a1b9a;
530
- # }
531
-
532
- # .pre-tabs h2 {
533
- # font-size: 2.5em;
534
- # color: #333333;
535
- # margin-bottom: 15px;
536
- # }
537
-
538
- # .pre-tabs p {
539
- # font-size: 1.2em;
540
- # color: #555555;
541
- # line-height: 1.8;
542
- # }
543
-
544
- # /* Tabs Section */
545
- # .tabs {
546
- # margin: 0 auto;
547
- # padding: 20px;
548
- # background: #ffffff;
549
- # border-radius: 12px;
550
- # box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
551
- # max-width: 1200px;
552
- # }
553
-
554
- # /* Post-Tabs Section */
555
- # .post-tabs {
556
- # text-align: center;
557
- # padding: 40px 20px;
558
- # background: linear-gradient(135deg, #64b5f6, #6a1b9a);
559
- # color: #ffffff;
560
- # border-radius: 12px;
561
- # margin-top: 30px;
562
- # }
563
-
564
- # .post-tabs h2 {
565
- # font-size: 2.5em;
566
- # margin-bottom: 15px;
567
- # }
568
-
569
- # .post-tabs p {
570
- # font-size: 1.2em;
571
- # line-height: 1.8;
572
- # margin-bottom: 20px;
573
- # }
574
-
575
- # .post-tabs a {
576
- # text-decoration: none;
577
- # font-size: 1.1em;
578
- # padding: 15px 30px;
579
- # border-radius: 30px;
580
- # font-weight: bold;
581
- # background: #ffffff;
582
- # color: #6a1b9a;
583
- # transition: transform 0.3s, background 0.3s;
584
- # box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
585
- # }
586
-
587
- # .post-tabs a:hover {
588
- # background: #6a1b9a;
589
- # color: #ffffff;
590
- # transform: scale(1.05);
591
- # }
592
-
593
- # /* Footer */
594
- # footer {
595
- # background: linear-gradient(135deg, #6a1b9a, #8e44ad);
596
- # color: #ffffff;
597
- # text-align: center;
598
- # padding: 40px 20px;
599
- # margin-top: 30px;
600
- # border-radius: 12px;
601
- # box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
602
- # }
603
-
604
- # footer h2 {
605
- # font-size: 1.8em;
606
- # margin-bottom: 15px;
607
- # }
608
-
609
- # footer p {
610
- # font-size: 1.1em;
611
- # line-height: 1.6;
612
- # margin-bottom: 20px;
613
- # }
614
-
615
- # footer .social-links {
616
- # display: flex;
617
- # justify-content: center;
618
- # gap: 15px;
619
- # margin-top: 20px;
620
- # }
621
-
622
- # footer .social-links a {
623
- # text-decoration: none;
624
- # font-size: 1.1em;
625
- # padding: 10px 20px;
626
- # border-radius: 8px;
627
- # font-weight: bold;
628
- # background: #ffffff;
629
- # color: #6a1b9a;
630
- # transition: transform 0.3s, background 0.3s;
631
- # }
632
-
633
- # footer .social-links a:hover {
634
- # background: #64b5f6;
635
- # color: #ffffff;
636
- # transform: scale(1.1);
637
- # }
638
- # """
639
-
640
- # # Gradio Interface
641
- # with gr.Blocks(css=css_tech_theme) as demo:
642
- # # Header Section
643
- # gr.Markdown("""
644
- # <header>
645
- # <h1>🏆 Mobile-MMLU Benchmark Competition</h1>
646
- # <h2>🚀 Push the Boundaries of Mobile AI</h2>
647
- # <p>
648
- # Test and optimize mobile-compatible Large Language Models (LLMs) with cutting-edge benchmarks
649
- # across 80 fields and over 16,000 questions.
650
- # </p>
651
- # <div class="header-buttons">
652
- # <a href="#overview">Learn More</a>
653
- # <a href="#submission">Submit Predictions</a>
654
- # <a href="#leaderboard">View Leaderboard</a>
655
- # </div>
656
- # </header>
657
- # """)
658
-
659
- # # Pre-Tabs Section
660
- # gr.Markdown("""
661
- # <section class="pre-tabs">
662
- # <h2>Why Participate?</h2>
663
- # <p>
664
- # The Mobile-MMLU Benchmark Competition is a unique opportunity to test your LLMs against
665
- # real-world scenarios. Compete to drive innovation and make your mark in mobile AI.
666
- # </p>
667
- # </section>
668
- # """)
669
-
670
- # # Tabs Section
671
- # with gr.Tabs(elem_id="tabs"):
672
- # # Overview Tab
673
- # with gr.TabItem("📖 Overview"):
674
- # gr.Markdown("""
675
- # <div class="tabs">
676
- # <h2>About the Competition</h2>
677
- # <p>
678
- # The **Mobile-MMLU Benchmark Competition** is an exciting challenge for mobile-optimized
679
- # LLMs. Compete to achieve the highest accuracy and contribute to advancements in mobile AI.
680
- # </p>
681
- # <h3>How It Works</h3>
682
- # <ul>
683
- # <li>1️⃣ <strong>Download the Dataset:</strong> Access the dataset and instructions on our
684
- # <a href="https://github.com/your-github-repo" target="_blank">GitHub page</a>.</li>
685
- # <li>2️⃣ <strong>Generate Predictions:</strong> Use your LLM to answer the dataset questions.
686
- # Format your predictions as a CSV file.</li>
687
- # <li>3️⃣ <strong>Submit Predictions:</strong> Upload your predictions on this platform.</li>
688
- # <li>4️⃣ <strong>Evaluation:</strong> Submissions are scored based on accuracy.</li>
689
- # <li>5️⃣ <strong>Leaderboard:</strong> View real-time rankings on the leaderboard.</li>
690
- # </ul>
691
- # </div>
692
- # """)
693
-
694
- # # Submission Tab
695
- # with gr.TabItem("📤 Submission"):
696
- # gr.Markdown("<div class='tabs'><h2>Submit Your Predictions</h2></div>")
697
- # with gr.Row():
698
- # file_input = gr.File(label="Upload Prediction CSV", file_types=[".csv"], interactive=True)
699
- # model_name_input = gr.Textbox(label="Model Name", placeholder="Enter your model name")
700
- # with gr.Row():
701
- # overall_accuracy_display = gr.Number(label="Overall Accuracy", interactive=False)
702
- # add_to_leaderboard_checkbox = gr.Checkbox(label="Add to Leaderboard?", value=True)
703
- # eval_button = gr.Button("Evaluate")
704
- # eval_status = gr.Textbox(label="Evaluation Status", interactive=False)
705
-
706
- # def handle_evaluation(file, model_name, add_to_leaderboard):
707
- # return "Evaluation complete. Model added to leaderboard.", 85.0
708
-
709
- # eval_button.click(
710
- # handle_evaluation,
711
- # inputs=[file_input, model_name_input, add_to_leaderboard_checkbox],
712
- # outputs=[eval_status, overall_accuracy_display],
713
- # )
714
-
715
- # # Leaderboard Tab
716
- # with gr.TabItem("🏅 Leaderboard"):
717
- # leaderboard_table = gr.Dataframe(
718
- # value=load_leaderboard(), # Initial data
719
- # label="Leaderboard",
720
- # interactive=False,
721
- # wrap=True,)
722
- # refresh_button = gr.Button("Refresh Leaderboard")
723
- # refresh_button.click(
724
- # load_leaderboard, # Fetch latest data
725
- # inputs=[],
726
- # outputs=[leaderboard_table],
727
- # )
728
-
729
- # # Post-Tabs Section
730
- # gr.Markdown("""
731
- # <section class="post-tabs">
732
- # <h3>Ready to Compete?</h3>
733
- # <p>
734
- # Submit your predictions today and make your mark in advancing mobile AI technologies.
735
- # Show the world what your model can achieve!
736
- # </p>
737
- # <a href="#submission">Start Submitting</a>
738
- # </section>
739
- # """)
740
-
741
- # # Footer Section
742
- # gr.Markdown("""
743
- # <footer>
744
- # <h3>Stay Connected</h3>
745
- # <p>
746
- # Follow us on social media or contact us for any queries. Let's shape the future of AI together!
747
- # </p>
748
- # <div class="social-links">
749
- # <a href="https://website.com" target="_blank">Website</a>
750
- # <a href="https://github.com" target="_blank">GitHub</a>
751
- # </div>
752
- # </footer>
753
- # """)
754
-
755
- # # Launch the interface
756
- # demo.launch()
 
453
  """)
454
 
455
  demo.launch()