Download index.html from Porirj/mlj: direct link, hf CLI and curl.
- Browser
- Download file 10.3 kB
-
https://huggingface.co/spaces/Porirj/mlj/resolve/main/index.html
- Command line
-
hf download hf://spaces/Porirj/mlj/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Porirj/mlj/resolve/main/index.html
10.3 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>IA Vocale - Assistant Virtuel</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| .pulse-animation { | |
| animation: pulse 1.5s infinite; | |
| } | |
| .chat-container { | |
| height: 70vh; | |
| scrollbar-width: thin; | |
| scrollbar-color: #4f46e5 #e5e7eb; | |
| } | |
| .chat-container::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .chat-container::-webkit-scrollbar-track { | |
| background: #e5e7eb; | |
| } | |
| .chat-container::-webkit-scrollbar-thumb { | |
| background-color: #4f46e5; | |
| border-radius: 20px; | |
| } | |
| .wave { | |
| position: relative; | |
| height: 30px; | |
| width: 30px; | |
| display: flex; | |
| align-items: flex-end; | |
| } | |
| .wave span { | |
| width: 3px; | |
| height: 10px; | |
| margin-right: 2px; | |
| background-color: white; | |
| border-radius: 3px; | |
| animation: wave 1s linear infinite; | |
| } | |
| .wave span:nth-child(1) { | |
| animation-delay: 0.1s; | |
| } | |
| .wave span:nth-child(2) { | |
| animation-delay: 0.3s; | |
| } | |
| .wave span:nth-child(3) { | |
| animation-delay: 0.5s; | |
| } | |
| .wave span:nth-child(4) { | |
| animation-delay: 0.7s; | |
| } | |
| @keyframes wave { | |
| 0% { height: 10px; } | |
| 50% { height: 20px; } | |
| 100% { height: 10px; } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 min-h-screen flex flex-col"> | |
| <!-- Header --> | |
| <header class="bg-indigo-600 text-white p-4 shadow-lg"> | |
| <div class="container mx-auto flex justify-between items-center"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center"> | |
| <i class="fas fa-robot text-indigo-600 text-xl"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold">Assistant Virtuel</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button id="settings-btn" class="p-2 rounded-full hover:bg-indigo-700 transition"> | |
| <i class="fas fa-cog text-xl"></i> | |
| </button> | |
| <button id="help-btn" class="p-2 rounded-full hover:bg-indigo-700 transition"> | |
| <i class="fas fa-question-circle text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="flex-1 container mx-auto p-4 flex flex-col"> | |
| <!-- Chat Container --> | |
| <div class="chat-container bg-white rounded-xl shadow-lg p-4 mb-4 overflow-y-auto flex-1"> | |
| <div class="flex flex-col space-y-4" id="chat-messages"> | |
| <!-- Assistant Welcome Message --> | |
| <div class="flex items-start space-x-2"> | |
| <div class="w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center flex-shrink-0"> | |
| <i class="fas fa-robot text-white text-sm"></i> | |
| </div> | |
| <div class="bg-indigo-100 rounded-xl p-3 max-w-xs md:max-w-md lg:max-w-lg"> | |
| <p class="text-gray-800">Bonjour ! Je suis votre assistant virtuel. Comment puis-je vous aider aujourd'hui ?</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Input Area --> | |
| <div class="bg-white rounded-xl shadow-lg p-4"> | |
| <div class="flex items-center space-x-2"> | |
| <button id="voice-btn" class="w-12 h-12 rounded-full bg-indigo-600 text-white flex items-center justify-center hover:bg-indigo-700 transition"> | |
| <i class="fas fa-microphone text-xl"></i> | |
| </button> | |
| <div class="flex-1 relative"> | |
| <input type="text" id="user-input" placeholder="Tapez votre message ou cliquez sur le microphone..." | |
| class="w-full border border-gray-300 rounded-full py-3 px-4 pr-12 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"> | |
| <button id="send-btn" class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-indigo-600"> | |
| <i class="fas fa-paper-plane text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="mt-2 text-xs text-gray-500 flex justify-between"> | |
| <span>Essayez : "Quel temps fait-il aujourd'hui ?"</span> | |
| <span id="connection-status" class="flex items-center"> | |
| <span class="w-2 h-2 rounded-full bg-green-500 mr-1"></span> | |
| Connecté | |
| </span> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Voice Recognition UI --> | |
| <div id="voice-ui" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="bg-white rounded-2xl p-8 max-w-md w-full text-center"> | |
| <div class="flex justify-center mb-6"> | |
| <div id="voice-animation" class="w-20 h-20 rounded-full bg-indigo-600 flex items-center justify-center"> | |
| <div class="wave"> | |
| <span></span> | |
| <span></span> | |
| <span></span> | |
| <span></span> | |
| </div> | |
| </div> | |
| </div> | |
| <h3 class="text-xl font-semibold mb-2" id="voice-status">Je vous écoute...</h3> | |
| <p class="text-gray-600 mb-6" id="voice-instruction">Parlez maintenant, je suis à l'écoute.</p> | |
| <div class="flex justify-center space-x-4"> | |
| <button id="cancel-voice" class="px-6 py-2 border border-gray-300 rounded-full text-gray-700 hover:bg-gray-100 transition"> | |
| Annuler | |
| </button> | |
| <button id="done-voice" class="px-6 py-2 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition hidden"> | |
| Terminer | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Settings Modal --> | |
| <div id="settings-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="bg-white rounded-2xl p-6 max-w-md w-full"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-semibold">Paramètres</h3> | |
| <button id="close-settings" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Voix de l'assistant</label> | |
| <select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500"> | |
| <option>Voix féminine 1</option> | |
| <option>Voix masculine 1</option> | |
| <option>Voix féminine 2</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Vitesse de parole</label> | |
| <input type="range" min="0.5" max="2" step="0.1" value="1" class="w-full"> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-sm font-medium text-gray-700">Activer les réponses vocales</span> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" class="sr-only peer" checked> | |
| <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-indigo-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"></div> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="mt-6 flex justify-end space-x-3"> | |
| <button id="cancel-settings" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100"> | |
| Annuler | |
| </button> | |
| <button id="save-settings" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700"> | |
| Enregistrer | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Help Modal --> | |
| <div id="help-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="bg-white rounded-2xl p-6 max-w-md w-full"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-semibold">Aide</h3> | |
| <button id="close-help" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="space-y-3"> | |
| <div class="p-3 bg-indigo-50 rounded-lg"> | |
| <h4 class="font-medium text-indigo-700 mb-1">Commandes vocales</h4> | |
| <ul class="text-sm text-gray-600 list-disc pl-5 space-y-1"> | |
| <li>"Quel temps fait-il aujourd'hui ?"</li> | |
| <li>"Quelle heure est-il ?"</li> | |
| <li>"Note pour moi..."</li> | |
| <li>"Recherche sur internet..."</li> | |
| </ul> | |
| </div> | |
| <div class="p-3 bg-indigo-50 rounded-lg"> | |
| <h4 class="font | |
| </html> |