Add 3 files
Browse files- README.md +7 -5
- index.html +817 -19
- prompts.txt +1 -0
    	
        README.md
    CHANGED
    
    | @@ -1,10 +1,12 @@ | |
| 1 | 
             
            ---
         | 
| 2 | 
            -
            title:  | 
| 3 | 
            -
            emoji:  | 
| 4 | 
            -
            colorFrom:  | 
| 5 | 
            -
            colorTo:  | 
| 6 | 
             
            sdk: static
         | 
| 7 | 
             
            pinned: false
         | 
|  | |
|  | |
| 8 | 
             
            ---
         | 
| 9 |  | 
| 10 | 
            -
            Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
         | 
|  | |
| 1 | 
             
            ---
         | 
| 2 | 
            +
            title: newgbd
         | 
| 3 | 
            +
            emoji: 🐳
         | 
| 4 | 
            +
            colorFrom: blue
         | 
| 5 | 
            +
            colorTo: yellow
         | 
| 6 | 
             
            sdk: static
         | 
| 7 | 
             
            pinned: false
         | 
| 8 | 
            +
            tags:
         | 
| 9 | 
            +
              - deepsite
         | 
| 10 | 
             
            ---
         | 
| 11 |  | 
| 12 | 
            +
            Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
         | 
    	
        index.html
    CHANGED
    
    | @@ -1,19 +1,817 @@ | |
| 1 | 
            -
            <! | 
| 2 | 
            -
            <html>
         | 
| 3 | 
            -
             | 
| 4 | 
            -
             | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
             | 
| 9 | 
            -
             | 
| 10 | 
            -
             | 
| 11 | 
            -
             | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
             | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            <!DOCTYPE html>
         | 
| 2 | 
            +
            <html lang="en">
         | 
| 3 | 
            +
            <head>
         | 
| 4 | 
            +
                <meta charset="UTF-8">
         | 
| 5 | 
            +
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
         | 
| 6 | 
            +
                <title>Polyglot NLP | Transfer Learning for Low-Resource Languages</title>
         | 
| 7 | 
            +
                <script src="https://cdn.tailwindcss.com"></script>
         | 
| 8 | 
            +
                <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
         | 
| 9 | 
            +
                <style>
         | 
| 10 | 
            +
                    .gradient-bg {
         | 
| 11 | 
            +
                        background: linear-gradient(135deg, #6B73FF 0%, #000DFF 50%, #00D4FF 100%);
         | 
| 12 | 
            +
                    }
         | 
| 13 | 
            +
                    .language-card:hover {
         | 
| 14 | 
            +
                        transform: translateY(-5px);
         | 
| 15 | 
            +
                        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
         | 
| 16 | 
            +
                    }
         | 
| 17 | 
            +
                    .model-visualization {
         | 
| 18 | 
            +
                        background: linear-gradient(45deg, #f3f4f6 0%, #e5e7eb 100%);
         | 
| 19 | 
            +
                    }
         | 
| 20 | 
            +
                    .typing-demo {
         | 
| 21 | 
            +
                        width: 22ch;
         | 
| 22 | 
            +
                        animation: typing 2s steps(22), blink .5s step-end infinite alternate;
         | 
| 23 | 
            +
                        white-space: nowrap;
         | 
| 24 | 
            +
                        overflow: hidden;
         | 
| 25 | 
            +
                        border-right: 3px solid;
         | 
| 26 | 
            +
                        font-family: monospace;
         | 
| 27 | 
            +
                    }
         | 
| 28 | 
            +
                    @keyframes typing {
         | 
| 29 | 
            +
                        from { width: 0 }
         | 
| 30 | 
            +
                    }
         | 
| 31 | 
            +
                    @keyframes blink {
         | 
| 32 | 
            +
                        50% { border-color: transparent }
         | 
| 33 | 
            +
                    }
         | 
| 34 | 
            +
                </style>
         | 
| 35 | 
            +
            </head>
         | 
| 36 | 
            +
            <body class="font-sans antialiased text-gray-800">
         | 
| 37 | 
            +
                <!-- Navigation -->
         | 
| 38 | 
            +
                <nav class="bg-white shadow-lg sticky top-0 z-50">
         | 
| 39 | 
            +
                    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
         | 
| 40 | 
            +
                        <div class="flex justify-between h-16">
         | 
| 41 | 
            +
                            <div class="flex items-center">
         | 
| 42 | 
            +
                                <div class="flex-shrink-0 flex items-center">
         | 
| 43 | 
            +
                                    <i class="fas fa-language text-3xl text-blue-600 mr-2"></i>
         | 
| 44 | 
            +
                                    <span class="text-xl font-bold text-gray-900">PolyglotNLP</span>
         | 
| 45 | 
            +
                                </div>
         | 
| 46 | 
            +
                            </div>
         | 
| 47 | 
            +
                            <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
         | 
| 48 | 
            +
                                <a href="#home" class="text-gray-900 hover:text-blue-600 px-3 py-2 text-sm font-medium">Home</a>
         | 
| 49 | 
            +
                                <a href="#features" class="text-gray-900 hover:text-blue-600 px-3 py-2 text-sm font-medium">Features</a>
         | 
| 50 | 
            +
                                <a href="#demo" class="text-gray-900 hover:text-blue-600 px-3 py-2 text-sm font-medium">Demo</a>
         | 
| 51 | 
            +
                                <a href="#about" class="text-gray-900 hover:text-blue-600 px-3 py-2 text-sm font-medium">About</a>
         | 
| 52 | 
            +
                                <a href="#contact" class="bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-blue-700 transition">Get Started</a>
         | 
| 53 | 
            +
                            </div>
         | 
| 54 | 
            +
                            <div class="-mr-2 flex items-center md:hidden">
         | 
| 55 | 
            +
                                <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none" aria-controls="mobile-menu" aria-expanded="false" id="mobile-menu-button">
         | 
| 56 | 
            +
                                    <span class="sr-only">Open main menu</span>
         | 
| 57 | 
            +
                                    <i class="fas fa-bars"></i>
         | 
| 58 | 
            +
                                </button>
         | 
| 59 | 
            +
                            </div>
         | 
| 60 | 
            +
                        </div>
         | 
| 61 | 
            +
                    </div>
         | 
| 62 | 
            +
             | 
| 63 | 
            +
                    <!-- Mobile menu -->
         | 
| 64 | 
            +
                    <div class="hidden md:hidden" id="mobile-menu">
         | 
| 65 | 
            +
                        <div class="pt-2 pb-3 space-y-1">
         | 
| 66 | 
            +
                            <a href="#home" class="bg-blue-50 border-blue-500 text-blue-600 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Home</a>
         | 
| 67 | 
            +
                            <a href="#features" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Features</a>
         | 
| 68 | 
            +
                            <a href="#demo" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Demo</a>
         | 
| 69 | 
            +
                            <a href="#about" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">About</a>
         | 
| 70 | 
            +
                            <a href="#contact" class="block w-full px-4 py-2 text-center text-white bg-blue-600 rounded-md hover:bg-blue-700 transition">Get Started</a>
         | 
| 71 | 
            +
                        </div>
         | 
| 72 | 
            +
                    </div>
         | 
| 73 | 
            +
                </nav>
         | 
| 74 | 
            +
             | 
| 75 | 
            +
                <!-- Hero Section -->
         | 
| 76 | 
            +
                <section id="home" class="gradient-bg text-white py-20">
         | 
| 77 | 
            +
                    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
         | 
| 78 | 
            +
                        <div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center">
         | 
| 79 | 
            +
                            <div class="mb-12 lg:mb-0">
         | 
| 80 | 
            +
                                <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight">
         | 
| 81 | 
            +
                                    Breaking Language Barriers with <span class="typing-demo">Transfer Learning</span>
         | 
| 82 | 
            +
                                </h1>
         | 
| 83 | 
            +
                                <p class="text-xl mb-8 text-blue-100">
         | 
| 84 | 
            +
                                    Empowering low-resource languages through advanced NLP techniques. Our transfer learning models bring high-quality language processing to underserved communities.
         | 
| 85 | 
            +
                                </p>
         | 
| 86 | 
            +
                                <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
         | 
| 87 | 
            +
                                    <a href="#demo" class="bg-white text-blue-600 hover:bg-gray-100 px-6 py-3 rounded-lg text-lg font-semibold text-center transition duration-300">
         | 
| 88 | 
            +
                                        Try Our Demo
         | 
| 89 | 
            +
                                    </a>
         | 
| 90 | 
            +
                                    <a href="#about" class="border-2 border-white text-white hover:bg-white hover:text-blue-600 px-6 py-3 rounded-lg text-lg font-semibold text-center transition duration-300">
         | 
| 91 | 
            +
                                        Learn More
         | 
| 92 | 
            +
                                    </a>
         | 
| 93 | 
            +
                                </div>
         | 
| 94 | 
            +
                            </div>
         | 
| 95 | 
            +
                            <div class="relative">
         | 
| 96 | 
            +
                                <div class="bg-white/10 backdrop-blur-md rounded-2xl p-6 border border-white/20">
         | 
| 97 | 
            +
                                    <div class="flex items-center mb-4">
         | 
| 98 | 
            +
                                        <div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
         | 
| 99 | 
            +
                                        <div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
         | 
| 100 | 
            +
                                        <div class="w-3 h-3 rounded-full bg-green-500"></div>
         | 
| 101 | 
            +
                                    </div>
         | 
| 102 | 
            +
                                    <div class="bg-black/30 rounded-lg p-4 font-mono text-sm overflow-auto h-64">
         | 
| 103 | 
            +
                                        <p class="text-green-400"># Initialize base model (mBERT)</p>
         | 
| 104 | 
            +
                                        <p class="text-green-400">base_model = AutoModel.from_pretrained('bert-base-multilingual-cased')</p>
         | 
| 105 | 
            +
                                        <br>
         | 
| 106 | 
            +
                                        <p class="text-green-400"># Add task-specific layers</p>
         | 
| 107 | 
            +
                                        <p class="text-green-400">class PolyglotModel(nn.Module):</p>
         | 
| 108 | 
            +
                                        <p class="text-green-400 ml-4">def __init__(self, base_model, num_languages):</p>
         | 
| 109 | 
            +
                                        <p class="text-green-400 ml-8">super().__init__()</p>
         | 
| 110 | 
            +
                                        <p class="text-green-400 ml-8">self.base = base_model</p>
         | 
| 111 | 
            +
                                        <p class="text-green-400 ml-8">self.classifier = nn.Linear(768, num_languages)</p>
         | 
| 112 | 
            +
                                        <br>
         | 
| 113 | 
            +
                                        <p class="text-green-400 ml-4">def forward(self, input_ids, attention_mask):</p>
         | 
| 114 | 
            +
                                        <p class="text-green-400 ml-8">outputs = self.base(input_ids, attention_mask)</p>
         | 
| 115 | 
            +
                                        <p class="text-green-400 ml-8">pooled = outputs.last_hidden_state[:, 0, :]</p>
         | 
| 116 | 
            +
                                        <p class="text-green-400 ml-8">return self.classifier(pooled)</p>
         | 
| 117 | 
            +
                                        <br>
         | 
| 118 | 
            +
                                        <p class="text-green-400"># Train with low-resource data</p>
         | 
| 119 | 
            +
                                        <p class="text-green-400">train_model(low_resource_data, epochs=5, lr=2e-5)</p>
         | 
| 120 | 
            +
                                    </div>
         | 
| 121 | 
            +
                                </div>
         | 
| 122 | 
            +
                                <div class="absolute -bottom-6 -right-6 bg-yellow-400 text-gray-900 px-4 py-2 rounded-lg shadow-lg font-bold">
         | 
| 123 | 
            +
                                    Transfer Learning in Action
         | 
| 124 | 
            +
                                </div>
         | 
| 125 | 
            +
                            </div>
         | 
| 126 | 
            +
                        </div>
         | 
| 127 | 
            +
                    </div>
         | 
| 128 | 
            +
                </section>
         | 
| 129 | 
            +
             | 
| 130 | 
            +
                <!-- Supported Languages -->
         | 
| 131 | 
            +
                <section class="py-16 bg-gray-50">
         | 
| 132 | 
            +
                    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
         | 
| 133 | 
            +
                        <div class="text-center mb-12">
         | 
| 134 | 
            +
                            <h2 class="text-3xl font-bold text-gray-900 mb-4">Supported Low-Resource Languages</h2>
         | 
| 135 | 
            +
                            <p class="text-xl text-gray-600 max-w-3xl mx-auto">
         | 
| 136 | 
            +
                                We currently support these languages with limited digital resources, helping bridge the digital divide.
         | 
| 137 | 
            +
                            </p>
         | 
| 138 | 
            +
                        </div>
         | 
| 139 | 
            +
                        
         | 
| 140 | 
            +
                        <div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-6">
         | 
| 141 | 
            +
                            <!-- Language Cards -->
         | 
| 142 | 
            +
                            <div class="language-card bg-white p-6 rounded-xl shadow-md transition duration-300 flex flex-col items-center">
         | 
| 143 | 
            +
                                <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4">
         | 
| 144 | 
            +
                                    <span class="text-2xl">🇮🇳</span>
         | 
| 145 | 
            +
                                </div>
         | 
| 146 | 
            +
                                <h3 class="font-bold text-lg mb-1">Nepali</h3>
         | 
| 147 | 
            +
                                <p class="text-gray-600 text-sm text-center">~30M speakers</p>
         | 
| 148 | 
            +
                                <div class="mt-3 w-full bg-gray-200 rounded-full h-2">
         | 
| 149 | 
            +
                                    <div class="bg-blue-600 h-2 rounded-full" style="width: 45%"></div>
         | 
| 150 | 
            +
                                </div>
         | 
| 151 | 
            +
                                <span class="text-xs mt-1 text-gray-500">45% coverage</span>
         | 
| 152 | 
            +
                            </div>
         | 
| 153 | 
            +
                            
         | 
| 154 | 
            +
                            <div class="language-card bg-white p-6 rounded-xl shadow-md transition duration-300 flex flex-col items-center">
         | 
| 155 | 
            +
                                <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4">
         | 
| 156 | 
            +
                                    <span class="text-2xl">🇪🇹</span>
         | 
| 157 | 
            +
                                </div>
         | 
| 158 | 
            +
                                <h3 class="font-bold text-lg mb-1">Amharic</h3>
         | 
| 159 | 
            +
                                <p class="text-gray-600 text-sm text-center">~25M speakers</p>
         | 
| 160 | 
            +
                                <div class="mt-3 w-full bg-gray-200 rounded-full h-2">
         | 
| 161 | 
            +
                                    <div class="bg-green-600 h-2 rounded-full" style="width: 38%"></div>
         | 
| 162 | 
            +
                                </div>
         | 
| 163 | 
            +
                                <span class="text-xs mt-1 text-gray-500">38% coverage</span>
         | 
| 164 | 
            +
                            </div>
         | 
| 165 | 
            +
                            
         | 
| 166 | 
            +
                            <div class="language-card bg-white p-6 rounded-xl shadow-md transition duration-300 flex flex-col items-center">
         | 
| 167 | 
            +
                                <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4">
         | 
| 168 | 
            +
                                    <span class="text-2xl">🇰🇪</span>
         | 
| 169 | 
            +
                                </div>
         | 
| 170 | 
            +
                                <h3 class="font-bold text-lg mb-1">Swahili</h3>
         | 
| 171 | 
            +
                                <p class="text-gray-600 text-sm text-center">~16M speakers</p>
         | 
| 172 | 
            +
                                <div class="mt-3 w-full bg-gray-200 rounded-full h-2">
         | 
| 173 | 
            +
                                    <div class="bg-purple-600 h-2 rounded-full" style="width: 65%"></div>
         | 
| 174 | 
            +
                                </div>
         | 
| 175 | 
            +
                                <span class="text-xs mt-1 text-gray-500">65% coverage</span>
         | 
| 176 | 
            +
                            </div>
         | 
| 177 | 
            +
                            
         | 
| 178 | 
            +
                            <div class="language-card bg-white p-6 rounded-xl shadow-md transition duration-300 flex flex-col items-center">
         | 
| 179 | 
            +
                                <div class="w-16 h-16 bg-yellow-100 rounded-full flex items-center justify-center mb-4">
         | 
| 180 | 
            +
                                    <span class="text-2xl">🇲🇲</span>
         | 
| 181 | 
            +
                                </div>
         | 
| 182 | 
            +
                                <h3 class="font-bold text-lg mb-1">Burmese</h3>
         | 
| 183 | 
            +
                                <p class="text-gray-600 text-sm text-center">~33M speakers</p>
         | 
| 184 | 
            +
                                <div class="mt-3 w-full bg-gray-200 rounded-full h-2">
         | 
| 185 | 
            +
                                    <div class="bg-yellow-600 h-2 rounded-full" style="width: 28%"></div>
         | 
| 186 | 
            +
                                </div>
         | 
| 187 | 
            +
                                <span class="text-xs mt-1 text-gray-500">28% coverage</span>
         | 
| 188 | 
            +
                            </div>
         | 
| 189 | 
            +
                            
         | 
| 190 | 
            +
                            <div class="language-card bg-white p-6 rounded-xl shadow-md transition duration-300 flex flex-col items-center">
         | 
| 191 | 
            +
                                <div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mb-4">
         | 
| 192 | 
            +
                                    <span class="text-2xl">🇮🇳</span>
         | 
| 193 | 
            +
                                </div>
         | 
| 194 | 
            +
                                <h3 class="font-bold text-lg mb-1">Odia</h3>
         | 
| 195 | 
            +
                                <p class="text-gray-600 text-sm text-center">~35M speakers</p>
         | 
| 196 | 
            +
                                <div class="mt-3 w-full bg-gray-200 rounded-full h-2">
         | 
| 197 | 
            +
                                    <div class="bg-red-600 h-2 rounded-full" style="width: 22%"></div>
         | 
| 198 | 
            +
                                </div>
         | 
| 199 | 
            +
                                <span class="text-xs mt-1 text-gray-500">22% coverage</span>
         | 
| 200 | 
            +
                            </div>
         | 
| 201 | 
            +
                            
         | 
| 202 | 
            +
                            <div class="language-card bg-white p-6 rounded-xl shadow-md transition duration-300 flex flex-col items-center">
         | 
| 203 | 
            +
                                <div class="w-16 h-16 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
         | 
| 204 | 
            +
                                    <span class="text-2xl">🇵🇰</span>
         | 
| 205 | 
            +
                                </div>
         | 
| 206 | 
            +
                                <h3 class="font-bold text-lg mb-1">Sindhi</h3>
         | 
| 207 | 
            +
                                <p class="text-gray-600 text-sm text-center">~30M speakers</p>
         | 
| 208 | 
            +
                                <div class="mt-3 w-full bg-gray-200 rounded-full h-2">
         | 
| 209 | 
            +
                                    <div class="bg-indigo-600 h-2 rounded-full" style="width: 18%"></div>
         | 
| 210 | 
            +
                                </div>
         | 
| 211 | 
            +
                                <span class="text-xs mt-1 text-gray-500">18% coverage</span>
         | 
| 212 | 
            +
                            </div>
         | 
| 213 | 
            +
                        </div>
         | 
| 214 | 
            +
                        
         | 
| 215 | 
            +
                        <div class="mt-12 text-center">
         | 
| 216 | 
            +
                            <a href="#" class="inline-flex items-center text-blue-600 hover:text-blue-800 font-medium">
         | 
| 217 | 
            +
                                Request a language <i class="fas fa-arrow-right ml-2"></i>
         | 
| 218 | 
            +
                            </a>
         | 
| 219 | 
            +
                        </div>
         | 
| 220 | 
            +
                    </div>
         | 
| 221 | 
            +
                </section>
         | 
| 222 | 
            +
             | 
| 223 | 
            +
                <!-- Features Section -->
         | 
| 224 | 
            +
                <section id="features" class="py-16 bg-white">
         | 
| 225 | 
            +
                    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
         | 
| 226 | 
            +
                        <div class="text-center mb-16">
         | 
| 227 | 
            +
                            <h2 class="text-3xl font-bold text-gray-900 mb-4">Our Transfer Learning Approach</h2>
         | 
| 228 | 
            +
                            <p class="text-xl text-gray-600 max-w-3xl mx-auto">
         | 
| 229 | 
            +
                                Leveraging state-of-the-art techniques to bring NLP to languages with limited digital resources.
         | 
| 230 | 
            +
                            </p>
         | 
| 231 | 
            +
                        </div>
         | 
| 232 | 
            +
                        
         | 
| 233 | 
            +
                        <div class="grid md:grid-cols-3 gap-8">
         | 
| 234 | 
            +
                            <!-- Feature 1 -->
         | 
| 235 | 
            +
                            <div class="bg-gray-50 p-8 rounded-xl">
         | 
| 236 | 
            +
                                <div class="w-14 h-14 bg-blue-100 rounded-lg flex items-center justify-center mb-6">
         | 
| 237 | 
            +
                                    <i class="fas fa-project-diagram text-blue-600 text-2xl"></i>
         | 
| 238 | 
            +
                                </div>
         | 
| 239 | 
            +
                                <h3 class="text-xl font-bold mb-3">Multilingual Base Models</h3>
         | 
| 240 | 
            +
                                <p class="text-gray-600 mb-4">
         | 
| 241 | 
            +
                                    We use pretrained multilingual models like mBERT and XLM-R as our foundation, then fine-tune them for specific low-resource languages.
         | 
| 242 | 
            +
                                </p>
         | 
| 243 | 
            +
                                <ul class="space-y-2">
         | 
| 244 | 
            +
                                    <li class="flex items-start">
         | 
| 245 | 
            +
                                        <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
         | 
| 246 | 
            +
                                        <span>Leverages cross-lingual transfer</span>
         | 
| 247 | 
            +
                                    </li>
         | 
| 248 | 
            +
                                    <li class="flex items-start">
         | 
| 249 | 
            +
                                        <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
         | 
| 250 | 
            +
                                        <span>Requires minimal target language data</span>
         | 
| 251 | 
            +
                                    </li>
         | 
| 252 | 
            +
                                </ul>
         | 
| 253 | 
            +
                            </div>
         | 
| 254 | 
            +
                            
         | 
| 255 | 
            +
                            <!-- Feature 2 -->
         | 
| 256 | 
            +
                            <div class="bg-gray-50 p-8 rounded-xl">
         | 
| 257 | 
            +
                                <div class="w-14 h-14 bg-purple-100 rounded-lg flex items-center justify-center mb-6">
         | 
| 258 | 
            +
                                    <i class="fas fa-layer-group text-purple-600 text-2xl"></i>
         | 
| 259 | 
            +
                                </div>
         | 
| 260 | 
            +
                                <h3 class="text-xl font-bold mb-3">Adaptive Fine-Tuning</h3>
         | 
| 261 | 
            +
                                <p class="text-gray-600 mb-4">
         | 
| 262 | 
            +
                                    Our progressive unfreezing technique carefully adapts the model layers to preserve valuable multilingual knowledge while specializing for target languages.
         | 
| 263 | 
            +
                                </p>
         | 
| 264 | 
            +
                                <ul class="space-y-2">
         | 
| 265 | 
            +
                                    <li class="flex items-start">
         | 
| 266 | 
            +
                                        <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
         | 
| 267 | 
            +
                                        <span>Preserves multilingual capabilities</span>
         | 
| 268 | 
            +
                                    </li>
         | 
| 269 | 
            +
                                    <li class="flex items-start">
         | 
| 270 | 
            +
                                        <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
         | 
| 271 | 
            +
                                        <span>Optimizes for low-resource scenarios</span>
         | 
| 272 | 
            +
                                    </li>
         | 
| 273 | 
            +
                                </ul>
         | 
| 274 | 
            +
                            </div>
         | 
| 275 | 
            +
                            
         | 
| 276 | 
            +
                            <!-- Feature 3 -->
         | 
| 277 | 
            +
                            <div class="bg-gray-50 p-8 rounded-xl">
         | 
| 278 | 
            +
                                <div class="w-14 h-14 bg-green-100 rounded-lg flex items-center justify-center mb-6">
         | 
| 279 | 
            +
                                    <i class="fas fa-robot text-green-600 text-2xl"></i>
         | 
| 280 | 
            +
                                </div>
         | 
| 281 | 
            +
                                <h3 class="text-xl font-bold mb-3">Task-Specific Heads</h3>
         | 
| 282 | 
            +
                                <p class="text-gray-600 mb-4">
         | 
| 283 | 
            +
                                    We add lightweight task-specific layers on top of the multilingual base, enabling efficient adaptation for various NLP tasks with minimal data.
         | 
| 284 | 
            +
                                </p>
         | 
| 285 | 
            +
                                <ul class="space-y-2">
         | 
| 286 | 
            +
                                    <li class="flex items-start">
         | 
| 287 | 
            +
                                        <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
         | 
| 288 | 
            +
                                        <span>Supports multiple NLP tasks</span>
         | 
| 289 | 
            +
                                    </li>
         | 
| 290 | 
            +
                                    <li class="flex items-start">
         | 
| 291 | 
            +
                                        <i class="fas fa-check text-green-500 mt-1 mr-2"></i>
         | 
| 292 | 
            +
                                        <span>Reduces catastrophic forgetting</span>
         | 
| 293 | 
            +
                                    </li>
         | 
| 294 | 
            +
                                </ul>
         | 
| 295 | 
            +
                            </div>
         | 
| 296 | 
            +
                        </div>
         | 
| 297 | 
            +
                        
         | 
| 298 | 
            +
                        <!-- Model Visualization -->
         | 
| 299 | 
            +
                        <div class="mt-16 model-visualization rounded-2xl p-8">
         | 
| 300 | 
            +
                            <h3 class="text-2xl font-bold mb-6 text-center">Our Transfer Learning Architecture</h3>
         | 
| 301 | 
            +
                            <div class="flex flex-col items-center">
         | 
| 302 | 
            +
                                <div class="w-full max-w-4xl">
         | 
| 303 | 
            +
                                    <!-- Model layers visualization -->
         | 
| 304 | 
            +
                                    <div class="flex flex-col items-center space-y-4">
         | 
| 305 | 
            +
                                        <!-- Input -->
         | 
| 306 | 
            +
                                        <div class="w-full bg-gray-200 py-4 px-6 rounded-lg text-center font-mono">
         | 
| 307 | 
            +
                                            Input Text (Low-Resource Language)
         | 
| 308 | 
            +
                                        </div>
         | 
| 309 | 
            +
                                        
         | 
| 310 | 
            +
                                        <!-- Tokenizer -->
         | 
| 311 | 
            +
                                        <div class="w-3/4 bg-blue-100 py-3 px-6 rounded-lg text-center relative">
         | 
| 312 | 
            +
                                            <span class="font-mono">Multilingual Tokenizer</span>
         | 
| 313 | 
            +
                                            <div class="absolute -bottom-4 left-1/2 transform -translate-x-1/2 text-xs bg-blue-500 text-white px-2 py-1 rounded">
         | 
| 314 | 
            +
                                                Shared Vocabulary
         | 
| 315 | 
            +
                                            </div>
         | 
| 316 | 
            +
                                        </div>
         | 
| 317 | 
            +
                                        
         | 
| 318 | 
            +
                                        <!-- Base Model -->
         | 
| 319 | 
            +
                                        <div class="w-full">
         | 
| 320 | 
            +
                                            <div class="text-center mb-2 text-sm font-medium">Multilingual Base Model (Frozen Initial Layers)</div>
         | 
| 321 | 
            +
                                            <div class="grid grid-cols-12 gap-1">
         | 
| 322 | 
            +
                                                <div class="col-span-12 bg-blue-500 h-2 rounded-full"></div>
         | 
| 323 | 
            +
                                                <div class="col-span-12 bg-blue-400 h-2 rounded-full"></div>
         | 
| 324 | 
            +
                                                <div class="col-span-12 bg-blue-300 h-2 rounded-full"></div>
         | 
| 325 | 
            +
                                                <div class="col-span-12 bg-blue-200 h-2 rounded-full"></div>
         | 
| 326 | 
            +
                                            </div>
         | 
| 327 | 
            +
                                        </div>
         | 
| 328 | 
            +
                                        
         | 
| 329 | 
            +
                                        <!-- Fine-tuned layers -->
         | 
| 330 | 
            +
                                        <div class="w-full">
         | 
| 331 | 
            +
                                            <div class="text-center mb-2 text-sm font-medium">Adaptive Fine-Tuned Layers</div>
         | 
| 332 | 
            +
                                            <div class="grid grid-cols-12 gap-1">
         | 
| 333 | 
            +
                                                <div class="col-span-12 bg-purple-300 h-2 rounded-full"></div>
         | 
| 334 | 
            +
                                                <div class="col-span-12 bg-purple-400 h-2 rounded-full"></div>
         | 
| 335 | 
            +
                                            </div>
         | 
| 336 | 
            +
                                        </div>
         | 
| 337 | 
            +
                                        
         | 
| 338 | 
            +
                                        <!-- Task head -->
         | 
| 339 | 
            +
                                        <div class="w-2/3 bg-green-200 py-3 px-6 rounded-lg text-center relative">
         | 
| 340 | 
            +
                                            <span class="font-mono">Language-Specific Task Head</span>
         | 
| 341 | 
            +
                                            <div class="absolute -bottom-4 left-1/2 transform -translate-x-1/2 text-xs bg-green-500 text-white px-2 py-1 rounded">
         | 
| 342 | 
            +
                                                Trained on Target Data
         | 
| 343 | 
            +
                                            </div>
         | 
| 344 | 
            +
                                        </div>
         | 
| 345 | 
            +
                                        
         | 
| 346 | 
            +
                                        <!-- Output -->
         | 
| 347 | 
            +
                                        <div class="w-full bg-gray-800 text-white py-4 px-6 rounded-lg text-center font-mono">
         | 
| 348 | 
            +
                                            Task Output (e.g., Translation, Sentiment, etc.)
         | 
| 349 | 
            +
                                        </div>
         | 
| 350 | 
            +
                                    </div>
         | 
| 351 | 
            +
                                </div>
         | 
| 352 | 
            +
                            </div>
         | 
| 353 | 
            +
                        </div>
         | 
| 354 | 
            +
                    </div>
         | 
| 355 | 
            +
                </section>
         | 
| 356 | 
            +
             | 
| 357 | 
            +
                <!-- Demo Section -->
         | 
| 358 | 
            +
                <section id="demo" class="py-16 bg-gray-50">
         | 
| 359 | 
            +
                    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
         | 
| 360 | 
            +
                        <div class="text-center mb-12">
         | 
| 361 | 
            +
                            <h2 class="text-3xl font-bold text-gray-900 mb-4">Try Our Polyglot NLP Demo</h2>
         | 
| 362 | 
            +
                            <p class="text-xl text-gray-600 max-w-3xl mx-auto">
         | 
| 363 | 
            +
                                Experience how transfer learning enables NLP for low-resource languages.
         | 
| 364 | 
            +
                            </p>
         | 
| 365 | 
            +
                        </div>
         | 
| 366 | 
            +
                        
         | 
| 367 | 
            +
                        <div class="bg-white rounded-xl shadow-lg overflow-hidden">
         | 
| 368 | 
            +
                            <div class="md:flex">
         | 
| 369 | 
            +
                                <!-- Input Section -->
         | 
| 370 | 
            +
                                <div class="md:w-1/2 p-8 border-b md:border-b-0 md:border-r border-gray-200">
         | 
| 371 | 
            +
                                    <h3 class="text-xl font-bold mb-6">Input Text</h3>
         | 
| 372 | 
            +
                                    
         | 
| 373 | 
            +
                                    <div class="mb-6">
         | 
| 374 | 
            +
                                        <label class="block text-sm font-medium text-gray-700 mb-2">Select Language</label>
         | 
| 375 | 
            +
                                        <select id="language-select" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
         | 
| 376 | 
            +
                                            <option value="nepali">Nepali (नेपाली)</option>
         | 
| 377 | 
            +
                                            <option value="amharic">Amharic (አማርኛ)</option>
         | 
| 378 | 
            +
                                            <option value="swahili">Swahili (Kiswahili)</option>
         | 
| 379 | 
            +
                                            <option value="burmese">Burmese (မြန်မာဘာသာ)</option>
         | 
| 380 | 
            +
                                        </select>
         | 
| 381 | 
            +
                                    </div>
         | 
| 382 | 
            +
                                    
         | 
| 383 | 
            +
                                    <div class="mb-6">
         | 
| 384 | 
            +
                                        <label class="block text-sm font-medium text-gray-700 mb-2">Select Task</label>
         | 
| 385 | 
            +
                                        <select id="task-select" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
         | 
| 386 | 
            +
                                            <option value="sentiment">Sentiment Analysis</option>
         | 
| 387 | 
            +
                                            <option value="translation">Translation to English</option>
         | 
| 388 | 
            +
                                            <option value="ner">Named Entity Recognition</option>
         | 
| 389 | 
            +
                                        </select>
         | 
| 390 | 
            +
                                    </div>
         | 
| 391 | 
            +
                                    
         | 
| 392 | 
            +
                                    <div>
         | 
| 393 | 
            +
                                        <label class="block text-sm font-medium text-gray-700 mb-2">Enter Text</label>
         | 
| 394 | 
            +
                                        <textarea id="input-text" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500 h-32" placeholder="Type or paste text here..."></textarea>
         | 
| 395 | 
            +
                                    </div>
         | 
| 396 | 
            +
                                    
         | 
| 397 | 
            +
                                    <button id="process-btn" class="w-full mt-6 bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-4 rounded-lg transition duration-300 flex items-center justify-center">
         | 
| 398 | 
            +
                                        <i class="fas fa-cogs mr-2"></i> Process Text
         | 
| 399 | 
            +
                                    </button>
         | 
| 400 | 
            +
                                </div>
         | 
| 401 | 
            +
                                
         | 
| 402 | 
            +
                                <!-- Output Section -->
         | 
| 403 | 
            +
                                <div class="md:w-1/2 p-8">
         | 
| 404 | 
            +
                                    <h3 class="text-xl font-bold mb-6">Results</h3>
         | 
| 405 | 
            +
                                    
         | 
| 406 | 
            +
                                    <div id="loading" class="hidden text-center py-12">
         | 
| 407 | 
            +
                                        <div class="inline-block animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-500 mb-4"></div>
         | 
| 408 | 
            +
                                        <p class="text-gray-600">Processing your text with our transfer learning model...</p>
         | 
| 409 | 
            +
                                    </div>
         | 
| 410 | 
            +
                                    
         | 
| 411 | 
            +
                                    <div id="results" class="hidden">
         | 
| 412 | 
            +
                                        <div class="mb-6">
         | 
| 413 | 
            +
                                            <h4 class="font-medium text-gray-700 mb-2">Input Language</h4>
         | 
| 414 | 
            +
                                            <div id="input-lang" class="px-4 py-2 bg-gray-100 rounded-lg"></div>
         | 
| 415 | 
            +
                                        </div>
         | 
| 416 | 
            +
                                        
         | 
| 417 | 
            +
                                        <div class="mb-6">
         | 
| 418 | 
            +
                                            <h4 class="font-medium text-gray-700 mb-2">Task Performed</h4>
         | 
| 419 | 
            +
                                            <div id="task-performed" class="px-4 py-2 bg-gray-100 rounded-lg"></div>
         | 
| 420 | 
            +
                                        </div>
         | 
| 421 | 
            +
                                        
         | 
| 422 | 
            +
                                        <div>
         | 
| 423 | 
            +
                                            <h4 class="font-medium text-gray-700 mb-2">Results</h4>
         | 
| 424 | 
            +
                                            <div id="result-output" class="px-4 py-3 bg-gray-100 rounded-lg min-h-32"></div>
         | 
| 425 | 
            +
                                        </div>
         | 
| 426 | 
            +
                                        
         | 
| 427 | 
            +
                                        <div id="confidence" class="mt-4 hidden">
         | 
| 428 | 
            +
                                            <h4 class="font-medium text-gray-700 mb-2">Model Confidence</h4>
         | 
| 429 | 
            +
                                            <div class="w-full bg-gray-200 rounded-full h-2.5">
         | 
| 430 | 
            +
                                                <div id="confidence-bar" class="bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
         | 
| 431 | 
            +
                                            </div>
         | 
| 432 | 
            +
                                            <p id="confidence-value" class="text-sm text-gray-600 mt-1"></p>
         | 
| 433 | 
            +
                                        </div>
         | 
| 434 | 
            +
                                    </div>
         | 
| 435 | 
            +
                                    
         | 
| 436 | 
            +
                                    <div id="demo-placeholder" class="text-center py-12">
         | 
| 437 | 
            +
                                        <i class="fas fa-language text-4xl text-gray-300 mb-4"></i>
         | 
| 438 | 
            +
                                        <h4 class="font-medium text-gray-500 mb-2">No results yet</h4>
         | 
| 439 | 
            +
                                        <p class="text-gray-400">Enter some text and click "Process Text" to see our transfer learning model in action.</p>
         | 
| 440 | 
            +
                                    </div>
         | 
| 441 | 
            +
                                </div>
         | 
| 442 | 
            +
                            </div>
         | 
| 443 | 
            +
                        </div>
         | 
| 444 | 
            +
                        
         | 
| 445 | 
            +
                        <div class="mt-8 bg-blue-50 border border-blue-200 rounded-lg p-6">
         | 
| 446 | 
            +
                            <div class="flex">
         | 
| 447 | 
            +
                                <div class="flex-shrink-0">
         | 
| 448 | 
            +
                                    <i class="fas fa-info-circle text-blue-500 text-2xl"></i>
         | 
| 449 | 
            +
                                </div>
         | 
| 450 | 
            +
                                <div class="ml-3">
         | 
| 451 | 
            +
                                    <h3 class="text-lg font-medium text-blue-800">About This Demo</h3>
         | 
| 452 | 
            +
                                    <p class="mt-2 text-blue-700">
         | 
| 453 | 
            +
                                        This demo simulates how our transfer learning approach works with low-resource languages. While we can't run actual models in the browser, this shows the interface and expected behavior of our system.
         | 
| 454 | 
            +
                                    </p>
         | 
| 455 | 
            +
                                </div>
         | 
| 456 | 
            +
                            </div>
         | 
| 457 | 
            +
                        </div>
         | 
| 458 | 
            +
                    </div>
         | 
| 459 | 
            +
                </section>
         | 
| 460 | 
            +
             | 
| 461 | 
            +
                <!-- About Section -->
         | 
| 462 | 
            +
                <section id="about" class="py-16 bg-white">
         | 
| 463 | 
            +
                    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
         | 
| 464 | 
            +
                        <div class="lg:grid lg:grid-cols-2 lg:gap-12 items-center">
         | 
| 465 | 
            +
                            <div class="mb-12 lg:mb-0">
         | 
| 466 | 
            +
                                <h2 class="text-3xl font-bold text-gray-900 mb-6">Our Mission: Inclusive NLP</h2>
         | 
| 467 | 
            +
                                <p class="text-lg text-gray-600 mb-6">
         | 
| 468 | 
            +
                                    Over 3,000 languages are spoken worldwide, yet most NLP research focuses on just a handful of high-resource languages. We're changing that by making NLP accessible to all languages, regardless of available digital resources.
         | 
| 469 | 
            +
                                </p>
         | 
| 470 | 
            +
                                <p class="text-lg text-gray-600 mb-8">
         | 
| 471 | 
            +
                                    Our transfer learning techniques allow us to achieve state-of-the-art results with as little as 1% of the data typically required for training NLP models from scratch.
         | 
| 472 | 
            +
                                </p>
         | 
| 473 | 
            +
                                
         | 
| 474 | 
            +
                                <div class="space-y-6">
         | 
| 475 | 
            +
                                    <div class="flex">
         | 
| 476 | 
            +
                                        <div class="flex-shrink-0">
         | 
| 477 | 
            +
                                            <div class="flex items-center justify-center h-12 w-12 rounded-md bg-blue-500 text-white">
         | 
| 478 | 
            +
                                                <i class="fas fa-database"></i>
         | 
| 479 | 
            +
                                            </div>
         | 
| 480 | 
            +
                                        </div>
         | 
| 481 | 
            +
                                        <div class="ml-4">
         | 
| 482 | 
            +
                                            <h3 class="text-lg font-medium text-gray-900">Data Efficiency</h3>
         | 
| 483 | 
            +
                                            <p class="mt-2 text-gray-600">
         | 
| 484 | 
            +
                                                Achieve 90% of high-resource language performance with just thousands (not millions) of training examples.
         | 
| 485 | 
            +
                                            </p>
         | 
| 486 | 
            +
                                        </div>
         | 
| 487 | 
            +
                                    </div>
         | 
| 488 | 
            +
                                    
         | 
| 489 | 
            +
                                    <div class="flex">
         | 
| 490 | 
            +
                                        <div class="flex-shrink-0">
         | 
| 491 | 
            +
                                            <div class="flex items-center justify-center h-12 w-12 rounded-md bg-purple-500 text-white">
         | 
| 492 | 
            +
                                                <i class="fas fa-globe"></i>
         | 
| 493 | 
            +
                                            </div>
         | 
| 494 | 
            +
                                        </div>
         | 
| 495 | 
            +
                                        <div class="ml-4">
         | 
| 496 | 
            +
                                            <h3 class="text-lg font-medium text-gray-900">Cross-Lingual Transfer</h3>
         | 
| 497 | 
            +
                                            <p class="mt-2 text-gray-600">
         | 
| 498 | 
            +
                                                Knowledge from related languages boosts performance on truly low-resource languages.
         | 
| 499 | 
            +
                                            </p>
         | 
| 500 | 
            +
                                        </div>
         | 
| 501 | 
            +
                                    </div>
         | 
| 502 | 
            +
                                </div>
         | 
| 503 | 
            +
                            </div>
         | 
| 504 | 
            +
                            
         | 
| 505 | 
            +
                            <div class="relative">
         | 
| 506 | 
            +
                                <div class="bg-gray-50 p-8 rounded-xl border border-gray-200">
         | 
| 507 | 
            +
                                    <h3 class="text-xl font-bold mb-6">Performance Comparison</h3>
         | 
| 508 | 
            +
                                    <p class="text-gray-600 mb-6">
         | 
| 509 | 
            +
                                        Our transfer learning approach outperforms traditional methods for low-resource languages:
         | 
| 510 | 
            +
                                    </p>
         | 
| 511 | 
            +
                                    
         | 
| 512 | 
            +
                                    <div class="space-y-6">
         | 
| 513 | 
            +
                                        <!-- Chart -->
         | 
| 514 | 
            +
                                        <div class="bg-white p-4 rounded-lg border border-gray-200">
         | 
| 515 | 
            +
                                            <div class="flex justify-between mb-2">
         | 
| 516 | 
            +
                                                <span class="text-sm font-medium text-gray-500">Model</span>
         | 
| 517 | 
            +
                                                <span class="text-sm font-medium text-gray-500">F1 Score</span>
         | 
| 518 | 
            +
                                            </div>
         | 
| 519 | 
            +
                                            
         | 
| 520 | 
            +
                                            <div class="space-y-4">
         | 
| 521 | 
            +
                                                <!-- From Scratch -->
         | 
| 522 | 
            +
                                                <div>
         | 
| 523 | 
            +
                                                    <div class="flex justify-between mb-1">
         | 
| 524 | 
            +
                                                        <span class="text-sm font-medium text-gray-700">From Scratch</span>
         | 
| 525 | 
            +
                                                        <span class="text-sm font-medium text-gray-700">42%</span>
         | 
| 526 | 
            +
                                                    </div>
         | 
| 527 | 
            +
                                                    <div class="w-full bg-gray-200 rounded-full h-2.5">
         | 
| 528 | 
            +
                                                        <div class="bg-red-500 h-2.5 rounded-full" style="width: 42%"></div>
         | 
| 529 | 
            +
                                                    </div>
         | 
| 530 | 
            +
                                                </div>
         | 
| 531 | 
            +
                                                
         | 
| 532 | 
            +
                                                <!-- Standard Fine-Tuning -->
         | 
| 533 | 
            +
                                                <div>
         | 
| 534 | 
            +
                                                    <div class="flex justify-between mb-1">
         | 
| 535 | 
            +
                                                        <span class="text-sm font-medium text-gray-700">Standard Fine-Tuning</span>
         | 
| 536 | 
            +
                                                        <span class="text-sm font-medium text-gray-700">67%</span>
         | 
| 537 | 
            +
                                                    </div>
         | 
| 538 | 
            +
                                                    <div class="w-full bg-gray-200 rounded-full h-2.5">
         | 
| 539 | 
            +
                                                        <div class="bg-yellow-500 h-2.5 rounded-full" style="width: 67%"></div>
         | 
| 540 | 
            +
                                                    </div>
         | 
| 541 | 
            +
                                                </div>
         | 
| 542 | 
            +
                                                
         | 
| 543 | 
            +
                                                <!-- Our Approach -->
         | 
| 544 | 
            +
                                                <div>
         | 
| 545 | 
            +
                                                    <div class="flex justify-between mb-1">
         | 
| 546 | 
            +
                                                        <span class="text-sm font-medium text-gray-700">Our Transfer Learning</span>
         | 
| 547 | 
            +
                                                        <span class="text-sm font-medium text-gray-700">83%</span>
         | 
| 548 | 
            +
                                                    </div>
         | 
| 549 | 
            +
                                                    <div class="w-full bg-gray-200 rounded-full h-2.5">
         | 
| 550 | 
            +
                                                        <div class="bg-green-500 h-2.5 rounded-full" style="width: 83%"></div>
         | 
| 551 | 
            +
                                                    </div>
         | 
| 552 | 
            +
                                                </div>
         | 
| 553 | 
            +
                                            </div>
         | 
| 554 | 
            +
                                            
         | 
| 555 | 
            +
                                            <p class="text-xs text-gray-500 mt-4 italic">Average performance across 5 low-resource languages on NER task</p>
         | 
| 556 | 
            +
                                        </div>
         | 
| 557 | 
            +
                                        
         | 
| 558 | 
            +
                                        <!-- Data Requirements -->
         | 
| 559 | 
            +
                                        <div class="bg-white p-4 rounded-lg border border-gray-200">
         | 
| 560 | 
            +
                                            <h4 class="font-medium mb-3">Data Requirements Comparison</h4>
         | 
| 561 | 
            +
                                            <div class="grid grid-cols-3 gap-4 text-center">
         | 
| 562 | 
            +
                                                <div>
         | 
| 563 | 
            +
                                                    <div class="text-2xl font-bold text-red-500">1M+</div>
         | 
| 564 | 
            +
                                                    <div class="text-xs text-gray-500">From Scratch</div>
         | 
| 565 | 
            +
                                                </div>
         | 
| 566 | 
            +
                                                <div>
         | 
| 567 | 
            +
                                                    <div class="text-2xl font-bold text-yellow-500">100K</div>
         | 
| 568 | 
            +
                                                    <div class="text-xs text-gray-500">Standard FT</div>
         | 
| 569 | 
            +
                                                </div>
         | 
| 570 | 
            +
                                                <div>
         | 
| 571 | 
            +
                                                    <div class="text-2xl font-bold text-green-500">10K</div>
         | 
| 572 | 
            +
                                                    <div class="text-xs text-gray-500">Our Approach</div>
         | 
| 573 | 
            +
                                                </div>
         | 
| 574 | 
            +
                                            </div>
         | 
| 575 | 
            +
                                        </div>
         | 
| 576 | 
            +
                                    </div>
         | 
| 577 | 
            +
                                </div>
         | 
| 578 | 
            +
                                
         | 
| 579 | 
            +
                                <div class="absolute -bottom-6 -left-6 bg-white shadow-lg rounded-lg px-4 py-2 border border-gray-200">
         | 
| 580 | 
            +
                                    <div class="flex items-center">
         | 
| 581 | 
            +
                                        <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
         | 
| 582 | 
            +
                                        <span class="font-medium">83% average performance</span>
         | 
| 583 | 
            +
                                    </div>
         | 
| 584 | 
            +
                                </div>
         | 
| 585 | 
            +
                            </div>
         | 
| 586 | 
            +
                        </div>
         | 
| 587 | 
            +
                    </div>
         | 
| 588 | 
            +
                </section>
         | 
| 589 | 
            +
             | 
| 590 | 
            +
                <!-- Contact Section -->
         | 
| 591 | 
            +
                <section id="contact" class="py-16 gradient-bg text-white">
         | 
| 592 | 
            +
                    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
         | 
| 593 | 
            +
                        <div class="lg:grid lg:grid-cols-2 lg:gap-12 items-center">
         | 
| 594 | 
            +
                            <div class="mb-12 lg:mb-0">
         | 
| 595 | 
            +
                                <h2 class="text-3xl font-bold mb-6">Get Started With Polyglot NLP</h2>
         | 
| 596 | 
            +
                                <p class="text-xl mb-8 text-blue-100">
         | 
| 597 | 
            +
                                    Whether you're a researcher, developer, or language community representative, we'd love to hear from you.
         | 
| 598 | 
            +
                                </p>
         | 
| 599 | 
            +
                                
         | 
| 600 | 
            +
                                <div class="space-y-6">
         | 
| 601 | 
            +
                                    <div class="flex">
         | 
| 602 | 
            +
                                        <div class="flex-shrink-0">
         | 
| 603 | 
            +
                                            <i class="fas fa-envelope text-2xl text-blue-300"></i>
         | 
| 604 | 
            +
                                        </div>
         | 
| 605 | 
            +
                                        <div class="ml-4">
         | 
| 606 | 
            +
                                            <h3 class="text-lg font-medium">Email Us</h3>
         | 
| 607 | 
            +
                                            <p class="mt-1 text-blue-100">[email protected]</p>
         | 
| 608 | 
            +
                                        </div>
         | 
| 609 | 
            +
                                    </div>
         | 
| 610 | 
            +
                                    
         | 
| 611 | 
            +
                                    <div class="flex">
         | 
| 612 | 
            +
                                        <div class="flex-shrink-0">
         | 
| 613 | 
            +
                                            <i class="fas fa-code-branch text-2xl text-blue-300"></i>
         | 
| 614 | 
            +
                                        </div>
         | 
| 615 | 
            +
                                        <div class="ml-4">
         | 
| 616 | 
            +
                                            <h3 class="text-lg font-medium">GitHub</h3>
         | 
| 617 | 
            +
                                            <p class="mt-1 text-blue-100">github.com/polyglot-nlp</p>
         | 
| 618 | 
            +
                                        </div>
         | 
| 619 | 
            +
                                    </div>
         | 
| 620 | 
            +
                                    
         | 
| 621 | 
            +
                                    <div class="flex">
         | 
| 622 | 
            +
                                        <div class="flex-shrink-0">
         | 
| 623 | 
            +
                                            <i class="fas fa-file-alt text-2xl text-blue-300"></i>
         | 
| 624 | 
            +
                                        </div>
         | 
| 625 | 
            +
                                        <div class="ml-4">
         | 
| 626 | 
            +
                                            <h3 class="text-lg font-medium">Research Paper</h3>
         | 
| 627 | 
            +
                                            <p class="mt-1 text-blue-100">Read our latest findings</p>
         | 
| 628 | 
            +
                                        </div>
         | 
| 629 | 
            +
                                    </div>
         | 
| 630 | 
            +
                                </div>
         | 
| 631 | 
            +
                            </div>
         | 
| 632 | 
            +
                            
         | 
| 633 | 
            +
                            <div>
         | 
| 634 | 
            +
                                <div class="bg-white/10 backdrop-blur-md rounded-xl p-8 border border-white/20">
         | 
| 635 | 
            +
                                    <h3 class="text-xl font-bold mb-6">Contact Form</h3>
         | 
| 636 | 
            +
                                    <form>
         | 
| 637 | 
            +
                                        <div class="mb-6">
         | 
| 638 | 
            +
                                            <label for="name" class="block text-sm font-medium mb-2">Your Name</label>
         | 
| 639 | 
            +
                                            <input type="text" id="name" class="w-full px-4 py-2 bg-white/20 border border-white/30 rounded-lg focus:ring-2 focus:ring-blue-300 focus:border-blue-300 text-white placeholder-blue-200" placeholder="John Doe">
         | 
| 640 | 
            +
                                        </div>
         | 
| 641 | 
            +
                                        
         | 
| 642 | 
            +
                                        <div class="mb-6">
         | 
| 643 | 
            +
                                            <label for="email" class="block text-sm font-medium mb-2">Email Address</label>
         | 
| 644 | 
            +
                                            <input type="email" id="email" class="w-full px-4 py-2 bg-white/20 border border-white/30 rounded-lg focus:ring-2 focus:ring-blue-300 focus:border-blue-300 text-white placeholder-blue-200" placeholder="[email protected]">
         | 
| 645 | 
            +
                                        </div>
         | 
| 646 | 
            +
                                        
         | 
| 647 | 
            +
                                        <div class="mb-6">
         | 
| 648 | 
            +
                                            <label for="interest" class="block text-sm font-medium mb-2">I'm interested in</label>
         | 
| 649 | 
            +
                                            <select id="interest" class="w-full px-4 py-2 bg-white/20 border border-white/30 rounded-lg focus:ring-2 focus:ring-blue-300 focus:border-blue-300 text-white">
         | 
| 650 | 
            +
                                                <option value="research">Research Collaboration</option>
         | 
| 651 | 
            +
                                                <option value="integration">API Integration</option>
         | 
| 652 | 
            +
                                                <option value="language">Adding a New Language</option>
         | 
| 653 | 
            +
                                                <option value="other">Other</option>
         | 
| 654 | 
            +
                                            </select>
         | 
| 655 | 
            +
                                        </div>
         | 
| 656 | 
            +
                                        
         | 
| 657 | 
            +
                                        <div class="mb-6">
         | 
| 658 | 
            +
                                            <label for="message" class="block text-sm font-medium mb-2">Message</label>
         | 
| 659 | 
            +
                                            <textarea id="message" rows="4" class="w-full px-4 py-2 bg-white/20 border border-white/30 rounded-lg focus:ring-2 focus:ring-blue-300 focus:border-blue-300 text-white placeholder-blue-200" placeholder="Your message..."></textarea>
         | 
| 660 | 
            +
                                        </div>
         | 
| 661 | 
            +
                                        
         | 
| 662 | 
            +
                                        <button type="submit" class="w-full bg-white text-blue-600 hover:bg-gray-100 px-6 py-3 rounded-lg text-lg font-semibold transition duration-300">
         | 
| 663 | 
            +
                                            Send Message
         | 
| 664 | 
            +
                                        </button>
         | 
| 665 | 
            +
                                    </form>
         | 
| 666 | 
            +
                                </div>
         | 
| 667 | 
            +
                            </div>
         | 
| 668 | 
            +
                        </div>
         | 
| 669 | 
            +
                    </div>
         | 
| 670 | 
            +
                </section>
         | 
| 671 | 
            +
             | 
| 672 | 
            +
                <!-- Footer -->
         | 
| 673 | 
            +
                <footer class="bg-gray-900 text-white py-12">
         | 
| 674 | 
            +
                    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
         | 
| 675 | 
            +
                        <div class="grid grid-cols-2 md:grid-cols-4 gap-8">
         | 
| 676 | 
            +
                            <div>
         | 
| 677 | 
            +
                                <h3 class="text-lg font-semibold mb-4">PolyglotNLP</h3>
         | 
| 678 | 
            +
                                <p class="text-gray-400">
         | 
| 679 | 
            +
                                    Making NLP accessible for all languages through innovative transfer learning techniques.
         | 
| 680 | 
            +
                                </p>
         | 
| 681 | 
            +
                            </div>
         | 
| 682 | 
            +
                            
         | 
| 683 | 
            +
                            <div>
         | 
| 684 | 
            +
                                <h3 class="text-lg font-semibold mb-4">Resources</h3>
         | 
| 685 | 
            +
                                <ul class="space-y-2">
         | 
| 686 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">Documentation</a></li>
         | 
| 687 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">API Reference</a></li>
         | 
| 688 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">Research Papers</a></li>
         | 
| 689 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li>
         | 
| 690 | 
            +
                                </ul>
         | 
| 691 | 
            +
                            </div>
         | 
| 692 | 
            +
                            
         | 
| 693 | 
            +
                            <div>
         | 
| 694 | 
            +
                                <h3 class="text-lg font-semibold mb-4">Community</h3>
         | 
| 695 | 
            +
                                <ul class="space-y-2">
         | 
| 696 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">GitHub</a></li>
         | 
| 697 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">Discord</a></li>
         | 
| 698 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">Twitter</a></li>
         | 
| 699 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">Contributing</a></li>
         | 
| 700 | 
            +
                                </ul>
         | 
| 701 | 
            +
                            </div>
         | 
| 702 | 
            +
                            
         | 
| 703 | 
            +
                            <div>
         | 
| 704 | 
            +
                                <h3 class="text-lg font-semibold mb-4">Legal</h3>
         | 
| 705 | 
            +
                                <ul class="space-y-2">
         | 
| 706 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">Privacy Policy</a></li>
         | 
| 707 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">Terms of Service</a></li>
         | 
| 708 | 
            +
                                    <li><a href="#" class="text-gray-400 hover:text-white transition">License</a></li>
         | 
| 709 | 
            +
                                </ul>
         | 
| 710 | 
            +
                            </div>
         | 
| 711 | 
            +
                        </div>
         | 
| 712 | 
            +
                        
         | 
| 713 | 
            +
                        <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
         | 
| 714 | 
            +
                            <p class="text-gray-400 mb-4 md:mb-0">
         | 
| 715 | 
            +
                                © 2023 PolyglotNLP. All rights reserved.
         | 
| 716 | 
            +
                            </p>
         | 
| 717 | 
            +
                            <div class="flex space-x-6">
         | 
| 718 | 
            +
                                <a href="#" class="text-gray-400 hover:text-white transition">
         | 
| 719 | 
            +
                                    <i class="fab fa-twitter text-xl"></i>
         | 
| 720 | 
            +
                                </a>
         | 
| 721 | 
            +
                                <a href="#" class="text-gray-400 hover:text-white transition">
         | 
| 722 | 
            +
                                    <i class="fab fa-github text-xl"></i>
         | 
| 723 | 
            +
                                </a>
         | 
| 724 | 
            +
                                <a href="#" class="text-gray-400 hover:text-white transition">
         | 
| 725 | 
            +
                                    <i class="fab fa-linkedin text-xl"></i>
         | 
| 726 | 
            +
                                </a>
         | 
| 727 | 
            +
                                <a href="#" class="text-gray-400 hover:text-white transition">
         | 
| 728 | 
            +
                                    <i class="fab fa-youtube text-xl"></i>
         | 
| 729 | 
            +
                                </a>
         | 
| 730 | 
            +
                            </div>
         | 
| 731 | 
            +
                        </div>
         | 
| 732 | 
            +
                    </div>
         | 
| 733 | 
            +
                </footer>
         | 
| 734 | 
            +
             | 
| 735 | 
            +
                <script>
         | 
| 736 | 
            +
                    // Mobile menu toggle
         | 
| 737 | 
            +
                    document.getElementById('mobile-menu-button').addEventListener('click', function() {
         | 
| 738 | 
            +
                        const menu = document.getElementById('mobile-menu');
         | 
| 739 | 
            +
                        menu.classList.toggle('hidden');
         | 
| 740 | 
            +
                    });
         | 
| 741 | 
            +
             | 
| 742 | 
            +
                    // Demo functionality
         | 
| 743 | 
            +
                    document.getElementById('process-btn').addEventListener('click', function() {
         | 
| 744 | 
            +
                        const inputText = document.getElementById('input-text').value.trim();
         | 
| 745 | 
            +
                        const language = document.getElementById('language-select').value;
         | 
| 746 | 
            +
                        const task = document.getElementById('task-select').value;
         | 
| 747 | 
            +
                        
         | 
| 748 | 
            +
                        if (!inputText) {
         | 
| 749 | 
            +
                            alert('Please enter some text to process');
         | 
| 750 | 
            +
                            return;
         | 
| 751 | 
            +
                        }
         | 
| 752 | 
            +
                        
         | 
| 753 | 
            +
                        // Show loading state
         | 
| 754 | 
            +
                        document.getElementById('loading').classList.remove('hidden');
         | 
| 755 | 
            +
                        document.getElementById('results').classList.add('hidden');
         | 
| 756 | 
            +
                        document.getElementById('demo-placeholder').classList.add('hidden');
         | 
| 757 | 
            +
                        
         | 
| 758 | 
            +
                        // Simulate API call with timeout
         | 
| 759 | 
            +
                        setTimeout(function() {
         | 
| 760 | 
            +
                            // Hide loading
         | 
| 761 | 
            +
                            document.getElementById('loading').classList.add('hidden');
         | 
| 762 | 
            +
                            
         | 
| 763 | 
            +
                            // Show results
         | 
| 764 | 
            +
                            document.getElementById('input-lang').textContent = document.getElementById('language-select').options[document.getElementById('language-select').selectedIndex].text;
         | 
| 765 | 
            +
                            document.getElementById('task-performed').textContent = document.getElementById('task-select').options[document.getElementById('task-select').selectedIndex].text;
         | 
| 766 | 
            +
                            
         | 
| 767 | 
            +
                            // Generate demo results based on task
         | 
| 768 | 
            +
                            let resultOutput = '';
         | 
| 769 | 
            +
                            let confidence = Math.random() * 30 + 70; // Random confidence between 70-100%
         | 
| 770 | 
            +
                            
         | 
| 771 | 
            +
                            if (task === 'sentiment') {
         | 
| 772 | 
            +
                                const sentiments = ['Positive', 'Negative', 'Neutral'];
         | 
| 773 | 
            +
                                const randomSentiment = sentiments[Math.floor(Math.random() * sentiments.length)];
         | 
| 774 | 
            +
                                resultOutput = `Sentiment: <span class="font-bold ${randomSentiment === 'Positive' ? 'text-green-600' : randomSentiment === 'Negative' ? 'text-red-600' : 'text-yellow-600'}">${randomSentiment}</span>`;
         | 
| 775 | 
            +
                                
         | 
| 776 | 
            +
                                document.getElementById('confidence').classList.remove('hidden');
         | 
| 777 | 
            +
                                document.getElementById('confidence-bar').style.width = `${confidence}%`;
         | 
| 778 | 
            +
                                document.getElementById('confidence-value').textContent = `Model is ${confidence.toFixed(1)}% confident in this prediction`;
         | 
| 779 | 
            +
                            } 
         | 
| 780 | 
            +
                            else if (task === 'translation') {
         | 
| 781 | 
            +
                                resultOutput = `This is a simulated translation from ${language} to English. In a real implementation, this would show the actual translation output from our transfer learning model.`;
         | 
| 782 | 
            +
                            } 
         | 
| 783 | 
            +
                            else if (task === 'ner') {
         | 
| 784 | 
            +
                                resultOutput = `[PERSON] John Doe [/PERSON] from [LOCATION] Kathmandu [/LOCATION] works at [ORGANIZATION] PolyglotNLP [/ORGANIZATION].`;
         | 
| 785 | 
            +
                            }
         | 
| 786 | 
            +
                            
         | 
| 787 | 
            +
                            document.getElementById('result-output').innerHTML = resultOutput;
         | 
| 788 | 
            +
                            document.getElementById('results').classList.remove('hidden');
         | 
| 789 | 
            +
                        }, 1500);
         | 
| 790 | 
            +
                    });
         | 
| 791 | 
            +
             | 
| 792 | 
            +
                    // Smooth scrolling for anchor links
         | 
| 793 | 
            +
                    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
         | 
| 794 | 
            +
                        anchor.addEventListener('click', function (e) {
         | 
| 795 | 
            +
                            e.preventDefault();
         | 
| 796 | 
            +
                            
         | 
| 797 | 
            +
                            const targetId = this.getAttribute('href');
         | 
| 798 | 
            +
                            if (targetId === '#') return;
         | 
| 799 | 
            +
                            
         | 
| 800 | 
            +
                            const targetElement = document.querySelector(targetId);
         | 
| 801 | 
            +
                            if (targetElement) {
         | 
| 802 | 
            +
                                window.scrollTo({
         | 
| 803 | 
            +
                                    top: targetElement.offsetTop - 80,
         | 
| 804 | 
            +
                                    behavior: 'smooth'
         | 
| 805 | 
            +
                                });
         | 
| 806 | 
            +
                                
         | 
| 807 | 
            +
                                // Close mobile menu if open
         | 
| 808 | 
            +
                                const mobileMenu = document.getElementById('mobile-menu');
         | 
| 809 | 
            +
                                if (!mobileMenu.classList.contains('hidden')) {
         | 
| 810 | 
            +
                                    mobileMenu.classList.add('hidden');
         | 
| 811 | 
            +
                                }
         | 
| 812 | 
            +
                            }
         | 
| 813 | 
            +
                        });
         | 
| 814 | 
            +
                    });
         | 
| 815 | 
            +
                </script>
         | 
| 816 | 
            +
            <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=gaur3009/newgbd" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
         | 
| 817 | 
            +
            </html>
         | 
    	
        prompts.txt
    ADDED
    
    | @@ -0,0 +1 @@ | |
|  | 
|  | |
| 1 | 
            +
            Make a polyglot NLP where low source languages using transfer leraning technique pick any model and use it to make a full fledged website and make sure don't have any error
         |