Download index.html from pmnvt/sobre: direct link, hf CLI and curl.
- Browser
- Download file 19.9 kB
-
https://huggingface.co/spaces/pmnvt/sobre/resolve/main/index.html
- Command line
-
hf download hf://spaces/pmnvt/sobre/index.html
-
curl -L -o index.html https://huggingface.co/spaces/pmnvt/sobre/resolve/main/index.html
19.9 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>A Jornada do Navegantes AI</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { font-family: 'Inter', sans-serif; } | |
| .chart-container { | |
| position: relative; | |
| width: 100%; | |
| max-width: 600px; | |
| margin: 0 auto; | |
| height: 300px; | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.8s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(20px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .glass-panel { | |
| background: rgba(255, 255, 255, 0.9); | |
| backdrop-filter: blur(10px); | |
| border: 1px solid rgba(255, 255, 255, 0.2); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-slate-50 text-slate-800 antialiased overflow-x-hidden"> | |
| <nav class="fixed w-full z-50 bg-white/90 backdrop-blur-md border-b border-slate-200 shadow-sm"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16 items-center"> | |
| <div class="flex items-center gap-2"> | |
| <img src="https://huggingface.co/spaces/pmnvt/niav2/resolve/main/assets/logo_nvt.jpg" alt="Logo Prefeitura" class="h-10 w-auto rounded"> | |
| <span class="font-bold text-xl text-slate-800 ml-2">Navegantes AI</span> | |
| </div> | |
| <div class="hidden md:flex space-x-8"> | |
| <a href="#challenge" class="text-slate-600 hover:text-blue-600 transition">O Desafio</a> | |
| <a href="#solution" class="text-slate-600 hover:text-blue-600 transition">A Solução</a> | |
| <a href="#architecture" class="text-slate-600 hover:text-blue-600 transition">Engenharia</a> | |
| <a href="#results" class="text-slate-600 hover:text-blue-600 transition">Resultados</a> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <header class="relative bg-gradient-to-br from-slate-900 to-blue-900 text-white pt-32 pb-20 px-4"> | |
| <div class="max-w-5xl mx-auto text-center fade-in"> | |
| <div class="inline-block bg-blue-500/20 text-blue-200 px-4 py-1 rounded-full text-sm font-semibold mb-6 border border-blue-400/30"> | |
| Case de Inovação Pública | |
| </div> | |
| <h1 class="text-4xl md:text-6xl font-bold mb-6 leading-tight"> | |
| De Dados Brutos à <br> <span class="text-blue-400">Inteligência Artificial</span> | |
| </h1> | |
| <p class="text-xl text-slate-300 max-w-2xl mx-auto mb-10"> | |
| Como transformamos um oceano de complexidade em decisões rápidas para a Prefeitura de Navegantes. | |
| </p> | |
| <a href="#challenge" class="inline-block bg-white text-blue-900 font-bold py-3 px-8 rounded-lg shadow-lg hover:bg-blue-50 transition transform hover:-translate-y-1"> | |
| Iniciar Jornada | |
| </a> | |
| </div> | |
| <div class="absolute bottom-0 left-0 w-full h-16 bg-slate-50 rounded-t-[50%] transform scale-110 translate-y-8"></div> | |
| </header> | |
| <section id="challenge" class="py-20 px-4 max-w-7xl mx-auto"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-slate-900 mb-4">1. O Oceano de Dados</h2> | |
| <p class="text-slate-600 max-w-3xl mx-auto text-lg"> | |
| O projeto começou com uma necessidade clara: navegar por um mar complexo de informações vindas de APIs distintas. O processo manual era lento e técnico. | |
| </p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6"> | |
| <div class="bg-white p-6 rounded-xl shadow-md border border-slate-100 hover:shadow-xl transition group cursor-default"> | |
| <div class="text-4xl mb-4 group-hover:scale-110 transition duration-300">📜</div> | |
| <h3 class="text-xl font-bold mb-2">Licitações e Contratos</h3> | |
| <p class="text-sm text-slate-500">Processos Licitatórios e Base de Contratos.</p> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md border border-slate-100 hover:shadow-xl transition group cursor-default"> | |
| <div class="text-4xl mb-4 group-hover:scale-110 transition duration-300">👥</div> | |
| <h3 class="text-xl font-bold mb-2">Recursos Humanos</h3> | |
| <p class="text-sm text-slate-500">Folha de pagamento, cargos e gestão de pessoas.</p> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md border border-slate-100 hover:shadow-xl transition group cursor-default"> | |
| <div class="text-4xl mb-4 group-hover:scale-110 transition duration-300">💰</div> | |
| <h3 class="text-xl font-bold mb-2">Receitas</h3> | |
| <p class="text-sm text-slate-500">Fluxo de caixa, arrecadação e fontes de recursos.</p> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md border border-slate-100 hover:shadow-xl transition group cursor-default"> | |
| <div class="text-4xl mb-4 group-hover:scale-110 transition duration-300">💸</div> | |
| <h3 class="text-xl font-bold mb-2">Despesas</h3> | |
| <p class="text-sm text-slate-500">Custos operacionais, investimentos e pagamentos.</p> | |
| </div> | |
| </div> | |
| </section> | |
| <section id="solution" class="py-20 bg-slate-100"> | |
| <div class="max-w-6xl mx-auto px-4"> | |
| <div class="text-center mb-12"> | |
| <h2 class="text-3xl font-bold text-slate-900 mb-4">2. A Virada de Chave</h2> | |
| <p class="text-slate-600"> | |
| Saímos das regras rígidas e evoluímos além das bibliotecas padrão para uma <strong>Arquitetura Proprietária (V16)</strong>. | |
| </p> | |
| </div> | |
| <div class="flex flex-col md:flex-row gap-8 items-stretch"> | |
| <div class="flex-1 bg-white rounded-2xl shadow-lg overflow-hidden border border-red-100 relative group" id="card-old"> | |
| <div class="bg-red-50 p-4 border-b border-red-100 flex justify-between items-center"> | |
| <h3 class="font-bold text-red-800">Tentativa 1: Regras Rígidas</h3> | |
| <span class="text-2xl">❌</span> | |
| </div> | |
| <div class="p-8"> | |
| <div class="font-mono text-xs bg-slate-900 text-green-400 p-4 rounded mb-4 overflow-x-auto"> | |
| if user_input == 'gasto':<br> | |
| check_column('X')<br> | |
| elif user_input == 'valor':<br> | |
| check_column('Y')<br> | |
| else:<br> | |
| return "Erro" | |
| </div> | |
| <h4 class="font-bold text-slate-800 mb-2">O Impasse</h4> | |
| <p class="text-slate-600 text-sm"> | |
| Uma calculadora glorificada. Funcionava para termos exatos, mas falhava na nuance humana. Criava um gargalo de manutenção insustentável. | |
| </p> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-center"> | |
| <div class="bg-blue-600 text-white p-3 rounded-full shadow-lg z-10"> | |
| ➜ | |
| </div> | |
| </div> | |
| <div class="flex-1 bg-white rounded-2xl shadow-lg overflow-hidden border border-blue-100 relative group" id="card-new"> | |
| <div class="bg-blue-50 p-4 border-b border-blue-100 flex justify-between items-center"> | |
| <h3 class="font-bold text-blue-800">Solução: Arquitetura V16</h3> | |
| <span class="text-2xl">✅</span> | |
| </div> | |
| <div class="p-8"> | |
| <div class="flex gap-4 mb-6"> | |
| <div class="flex-1 text-center p-3 bg-blue-50 rounded-lg border border-blue-200"> | |
| <div class="text-2xl mb-1">⚙️</div> | |
| <div class="text-xs font-bold text-blue-900">Motor Proprietário</div> | |
| <div class="text-[10px] text-blue-600">Python Puro (White Box)</div> | |
| </div> | |
| <div class="flex-1 text-center p-3 bg-indigo-50 rounded-lg border border-indigo-200"> | |
| <div class="text-2xl mb-1">🧠</div> | |
| <div class="text-xs font-bold text-indigo-900">Agente Analista</div> | |
| <div class="text-[10px] text-indigo-600">Gemini Flash</div> | |
| </div> | |
| </div> | |
| <h4 class="font-bold text-slate-800 mb-2">A Solução Definitiva</h4> | |
| <p class="text-slate-600 text-sm"> | |
| Abandonamos "caixas pretas" externas. Agora, um Agente gera código Python nativo, nosso motor executa localmente com segurança, e a IA narra os resultados reais. Zero alucinação. | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <section class="py-16 px-4 bg-white border-y border-slate-200"> | |
| <div class="max-w-4xl mx-auto"> | |
| <div class="text-center mb-8"> | |
| <h3 class="text-2xl font-bold text-slate-800">Salto de Eficiência</h3> | |
| <p class="text-slate-500 text-sm">Evolução da arquitetura técnica ao longo do projeto.</p> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="impactChart"></canvas> | |
| </div> | |
| </div> | |
| </section> | |
| <section id="architecture" class="py-20 bg-slate-900 text-white"> | |
| <div class="max-w-6xl mx-auto px-4"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold mb-4">3. A Engenharia Invisível</h2> | |
| <p class="text-slate-400"> | |
| Para que a mágica acontecesse, construímos uma "casa de máquinas" robusta. Clique nos pilares para explorar. | |
| </p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8 text-slate-800"> | |
| <div class="bg-slate-800 p-1 rounded-xl cursor-pointer transform transition hover:-translate-y-2" onclick="showDetail('etl')"> | |
| <div class="bg-slate-800 border border-slate-700 h-full p-8 rounded-lg text-center hover:bg-slate-700 transition"> | |
| <div class="text-5xl mb-4">⚙️</div> | |
| <h3 class="text-xl font-bold text-white mb-2">ETL & Pipeline</h3> | |
| <p class="text-slate-400 text-sm">Clique para detalhes</p> | |
| </div> | |
| </div> | |
| <div class="bg-slate-800 p-1 rounded-xl cursor-pointer transform transition hover:-translate-y-2" onclick="showDetail('cache')"> | |
| <div class="bg-slate-800 border border-slate-700 h-full p-8 rounded-lg text-center hover:bg-slate-700 transition"> | |
| <div class="text-5xl mb-4">⚡</div> | |
| <h3 class="text-xl font-bold text-white mb-2">Cache Inteligente</h3> | |
| <p class="text-slate-400 text-sm">Clique para detalhes</p> | |
| </div> | |
| </div> | |
| <div class="bg-slate-800 p-1 rounded-xl cursor-pointer transform transition hover:-translate-y-2" onclick="showDetail('security')"> | |
| <div class="bg-slate-800 border border-slate-700 h-full p-8 rounded-lg text-center hover:bg-slate-700 transition"> | |
| <div class="text-5xl mb-4">🔒</div> | |
| <h3 class="text-xl font-bold text-white mb-2">Segurança SEPAF</h3> | |
| <p class="text-slate-400 text-sm">Clique para detalhes</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div id="detail-display" class="mt-12 p-8 bg-slate-800/50 border border-slate-700 rounded-xl text-center hidden fade-in"> | |
| <h4 id="detail-title" class="text-2xl font-bold text-blue-400 mb-4"></h4> | |
| <p id="detail-desc" class="text-slate-300 leading-relaxed"></p> | |
| </div> | |
| </div> | |
| </section> | |
| <section id="results" class="py-20 bg-slate-50"> | |
| <div class="max-w-6xl mx-auto px-4"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-slate-900 mb-4">4. O Resultado</h2> | |
| <p class="text-slate-600 max-w-2xl mx-auto"> | |
| Dois produtos poderosos hospedados na nuvem (Hugging Face), provando a viabilidade de deploy profissional com recursos Open Source. | |
| </p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-10"> | |
| <div class="bg-white rounded-2xl shadow-xl overflow-hidden group"> | |
| <div class="h-48 bg-gradient-to-r from-blue-500 to-cyan-400 flex items-center justify-center"> | |
| <span class="text-6xl">📊</span> | |
| </div> | |
| <div class="p-8"> | |
| <h3 class="text-2xl font-bold text-slate-800 mb-2">O Painel Visual (Dash)</h3> | |
| <p class="text-slate-600 mb-6"> | |
| Para o controle macro e indicadores visuais. Uma visão panorâmica dos dados. | |
| </p> | |
| <a href="https://pmnvt-dashv3.hf.space/" target="_blank" class="block w-full text-center bg-slate-900 text-white font-bold py-3 rounded-lg hover:bg-blue-600 transition"> | |
| Acessar Dashboard 🔗 | |
| </a> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-2xl shadow-xl overflow-hidden group"> | |
| <div class="h-48 bg-gradient-to-r from-indigo-600 to-purple-500 flex items-center justify-center"> | |
| <span class="text-6xl">🤖</span> | |
| </div> | |
| <div class="p-8"> | |
| <h3 class="text-2xl font-bold text-slate-800 mb-2">O Analista Virtual (NIAv2)</h3> | |
| <p class="text-slate-600 mb-6"> | |
| O chatbot V16 que conversa, executa código Python real e explica o cenário fiscal em linguagem natural. | |
| </p> | |
| <a href="https://pmnvt-niav2.hf.space/" target="_blank" class="block w-full text-center bg-slate-900 text-white font-bold py-3 rounded-lg hover:bg-indigo-600 transition"> | |
| Acessar Chatbot 🔗 | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <footer class="bg-white border-t border-slate-200 py-20 px-4"> | |
| <div class="max-w-4xl mx-auto text-center"> | |
| <h2 class="text-3xl font-bold text-slate-900 mb-6">O Futuro: A IA no Setor Público</h2> | |
| <div class="prose prose-lg mx-auto text-slate-600"> | |
| <p class="mb-6"> | |
| Este projeto é mais do que software; é um <strong>manifesto</strong>. Ele prova que tecnologias emergentes podem ser aplicadas <strong>hoje</strong> para trazer transparência e eficiência. | |
| </p> | |
| <p> | |
| Saímos do Excel e dos relatórios estáticos para um nível onde APIs robustas podem ser integradas para que o gestor público não perca tempo <em>procurando</em> a informação, mas sim <em>tomando decisões</em>. | |
| </p> | |
| </div> | |
| <div class="mt-12 pt-8 border-t border-slate-100 text-sm text-slate-400"> | |
| PREFEITURA DE NAVEGANTES - Projeto piloto - desenvolvido pelo Departamento de Planejamento e Gestão da SEPAF | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| const details = { | |
| etl: { | |
| title: "ETL (Extract, Transform, Load)", | |
| desc: "Um pipeline robusto que busca dados da API, limpa encodings quebrados (UTF-8), padroniza moedas (R$) e remove lixo digital, garantindo que a IA consuma apenas dados limpos." | |
| }, | |
| cache: { | |
| title: "Cache Inteligente & Resiliência", | |
| desc: "Implementamos um sistema de cache local. Se a API da prefeitura oscilar ou cair, o sistema continua operando com a última versão salva, garantindo alta disponibilidade." | |
| }, | |
| security: { | |
| title: "Segurança SEPAF", | |
| desc: "Sistema de autenticação com rotação de senhas e timeout de sessão (10 minutos), garantindo que dados sensíveis de RH e Licitações fiquem protegidos contra acesso não autorizado." | |
| } | |
| }; | |
| function showDetail(key) { | |
| const display = document.getElementById('detail-display'); | |
| const title = document.getElementById('detail-title'); | |
| const desc = document.getElementById('detail-desc'); | |
| title.textContent = details[key].title; | |
| desc.textContent = details[key].desc; | |
| display.classList.remove('hidden'); | |
| display.classList.remove('fade-in'); | |
| void display.offsetWidth; | |
| display.classList.add('fade-in'); | |
| } | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const ctx = document.getElementById('impactChart').getContext('2d'); | |
| new Chart(ctx, { | |
| type: 'line', | |
| data: { | |
| // ATUALIZAÇÃO NOS LABELS DO GRÁFICO | |
| labels: ['Planilhas Manuais', 'Scripts Rígidos', 'PandasAI (Caixa Preta)', 'Arquitetura V16 (Própria)'], | |
| datasets: [{ | |
| label: 'Precisão e Controle', | |
| data: [10, 40, 65, 99], | |
| borderColor: 'rgb(59, 130, 246)', | |
| backgroundColor: 'rgba(59, 130, 246, 0.1)', | |
| borderWidth: 3, | |
| tension: 0.4, | |
| fill: true | |
| }, { | |
| label: 'Esforço Manual', | |
| data: [90, 60, 30, 5], | |
| borderColor: 'rgb(239, 68, 68)', | |
| borderWidth: 2, | |
| borderDash: [5, 5], | |
| tension: 0.4 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { position: 'bottom' }, | |
| tooltip: { | |
| mode: 'index', | |
| intersect: false, | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| max: 100, | |
| ticks: { display: false }, | |
| grid: { display: false } | |
| }, | |
| x: { | |
| grid: { display: false } | |
| } | |
| } | |
| } | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |