anycoder-7904ec75 / index.html
akhaliq's picture
akhaliq HF Staff
Upload index.html with huggingface_hub
6973a62 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apple Style Chatbot - Gemma AI</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="app-container">
<!-- Header -->
<header class="header">
<div class="header-content">
<div class="app-info">
<div class="app-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2" />
<path d="M8 12h8M12 8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
</svg>
</div>
<div>
<h1>Gemma AI Assistant</h1>
<p id="model-status">Loading model...</p>
</div>
</div>
<div class="header-actions">
<button id="clear-chat" class="btn-icon" title="Clear chat">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none">
<path d="M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2m3 0v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6h14zM10 11v6M14 11v6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
</button>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with"
title="Built with anycoder">
Built with anycoder
</a>
</div>
</div>
</header>
<!-- Chat Container -->
<main class="chat-container">
<div id="messages" class="messages">
<div class="welcome-message">
<div class="welcome-icon">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5" opacity="0.3" />
<path d="M12 7v5l3 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
</svg>
</div>
<h2>Welcome to Gemma AI</h2>
<p>Ask me anything! I'm here to help with your questions and creative tasks.</p>
<div class="suggested-prompts">
<button class="prompt-chip" data-prompt="Write a poem about machine learning">
Write a poem about machine learning
</button>
<button class="prompt-chip" data-prompt="Explain quantum computing in simple terms">
Explain quantum computing
</button>
<button class="prompt-chip" data-prompt="Tell me a short story about AI">
Tell me a story about AI
</button>
</div>
</div>
</div>
</main>
<!-- Input Area -->
<footer class="input-area">
<div class="input-container">
<div class="input-wrapper">
<textarea
id="message-input"
placeholder="Type your message..."
rows="1"
disabled
></textarea>
<button id="send-button" class="send-button" disabled>
<svg width="20" height="20" viewBox="0 0 24 24" fill="none">
<path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</div>
</div>
<div id="typing-indicator" class="typing-indicator hidden">
<span></span>
<span></span>
<span></span>
</div>
</footer>
<!-- Loading Overlay -->
<div id="loading-overlay" class="loading-overlay">
<div class="loading-content">
<div class="loading-spinner"></div>
<h3>Loading Gemma Model</h3>
<p id="loading-progress">Downloading model files...</p>
<div class="progress-bar">
<div id="progress-fill" class="progress-fill"></div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.1/dist/transformers.min.js"></script>
<script src="index.js"></script>
</body>
</html>