Spaces:
Running
Running
can you change the color to purple - Initial Deployment
Browse files- README.md +7 -5
- index.html +167 -18
- prompts.txt +61 -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: test
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: purple
|
| 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,168 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 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>Ceramic Voice | AI Assistant</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 11 |
+
<style>
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Manrope', sans-serif;
|
| 14 |
+
background: linear-gradient(135deg, #f8f5f2 0%, #f0ece8 100%);
|
| 15 |
+
color: #333333;
|
| 16 |
+
}
|
| 17 |
+
.ceramic-bg {
|
| 18 |
+
background: linear-gradient(135deg, #f8f5f2 0%, #f0ece8 100%);
|
| 19 |
+
}
|
| 20 |
+
.purple-accent {
|
| 21 |
+
color: #6a0dad;
|
| 22 |
+
}
|
| 23 |
+
.purple-bg {
|
| 24 |
+
background-color: #6a0dad;
|
| 25 |
+
}
|
| 26 |
+
.walnut-bg {
|
| 27 |
+
background-color: #3a2c1a;
|
| 28 |
+
}
|
| 29 |
+
.orb {
|
| 30 |
+
width: 180px;
|
| 31 |
+
height: 180px;
|
| 32 |
+
border-radius: 50%;
|
| 33 |
+
background: radial-gradient(circle at 40% 40%, #6a0dad, #9b59b6);
|
| 34 |
+
box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
|
| 35 |
+
animation: pulse 3s infinite ease-in-out;
|
| 36 |
+
}
|
| 37 |
+
@keyframes pulse {
|
| 38 |
+
0% { transform: scale(1); opacity: 0.9; }
|
| 39 |
+
50% { transform: scale(1.05); opacity: 1; }
|
| 40 |
+
100% { transform: scale(1); opacity: 0.9; }
|
| 41 |
+
}
|
| 42 |
+
.conversation-card {
|
| 43 |
+
background-color: #f8f5f2;
|
| 44 |
+
border-left: 3px solid #b87333;
|
| 45 |
+
}
|
| 46 |
+
.info-card {
|
| 47 |
+
background-color: #3a2c1a;
|
| 48 |
+
color: #f8f5f2;
|
| 49 |
+
}
|
| 50 |
+
.btn-press:active {
|
| 51 |
+
transform: scale(0.98);
|
| 52 |
+
opacity: 0.9;
|
| 53 |
+
}
|
| 54 |
+
</style>
|
| 55 |
+
</head>
|
| 56 |
+
<body class="h-screen overflow-hidden ceramic-bg">
|
| 57 |
+
<div class="container mx-auto h-full flex flex-col">
|
| 58 |
+
<!-- Header -->
|
| 59 |
+
<header class="pt-8 px-6 flex justify-between items-center">
|
| 60 |
+
<h1 class="text-xl font-light text-gray-700">Ceramic Voice</h1>
|
| 61 |
+
<button class="copper-accent">
|
| 62 |
+
<i data-feather="settings"></i>
|
| 63 |
+
</button>
|
| 64 |
+
</header>
|
| 65 |
+
|
| 66 |
+
<!-- Main Content -->
|
| 67 |
+
<main class="flex-1 flex flex-col items-center justify-center px-6 pb-20">
|
| 68 |
+
<!-- Orb Animation -->
|
| 69 |
+
<div class="orb mb-8" id="voiceOrb"></div>
|
| 70 |
+
|
| 71 |
+
<!-- Prompt Text -->
|
| 72 |
+
<p class="text-lg text-gray-600 mb-12" id="promptText">How can I help?</p>
|
| 73 |
+
|
| 74 |
+
<!-- Conversation Area -->
|
| 75 |
+
<div class="w-full max-w-md space-y-4 overflow-y-auto max-h-64" id="conversationArea">
|
| 76 |
+
<!-- Conversation items will be added here dynamically -->
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<!-- Results Cards -->
|
| 80 |
+
<div class="w-full max-w-md mt-4 space-y-3 hidden" id="resultsArea">
|
| 81 |
+
<div class="rounded-lg p-4 info-card">
|
| 82 |
+
<h3 class="font-medium mb-2">Weather</h3>
|
| 83 |
+
<p>Currently 72°F • Sunny</p>
|
| 84 |
+
</div>
|
| 85 |
+
</div>
|
| 86 |
+
</main>
|
| 87 |
+
|
| 88 |
+
<!-- Footer -->
|
| 89 |
+
<footer class="pb-8 px-6 flex justify-center">
|
| 90 |
+
<button class="purple-bg text-white rounded-full p-4 shadow-lg btn-press transition-all duration-200" id="voiceButton">
|
| 91 |
+
<i data-feather="mic" class="w-6 h-6"></i>
|
| 92 |
+
</button>
|
| 93 |
+
</footer>
|
| 94 |
+
</div>
|
| 95 |
+
|
| 96 |
+
<script>
|
| 97 |
+
feather.replace();
|
| 98 |
+
|
| 99 |
+
// Voice interaction simulation
|
| 100 |
+
const voiceButton = document.getElementById('voiceButton');
|
| 101 |
+
const voiceOrb = document.getElementById('voiceOrb');
|
| 102 |
+
const promptText = document.getElementById('promptText');
|
| 103 |
+
const conversationArea = document.getElementById('conversationArea');
|
| 104 |
+
const resultsArea = document.getElementById('resultsArea');
|
| 105 |
+
|
| 106 |
+
let isListening = false;
|
| 107 |
+
|
| 108 |
+
voiceButton.addEventListener('click', () => {
|
| 109 |
+
isListening = !isListening;
|
| 110 |
+
|
| 111 |
+
if (isListening) {
|
| 112 |
+
// Start listening state
|
| 113 |
+
voiceOrb.style.animation = 'none';
|
| 114 |
+
voiceOrb.style.transform = 'scale(1.1)';
|
| 115 |
+
voiceOrb.style.boxShadow = '0 10px 40px rgba(106, 13, 173, 0.5)';
|
| 116 |
+
promptText.textContent = "Listening...";
|
| 117 |
+
voiceButton.classList.add('animate-pulse');
|
| 118 |
+
|
| 119 |
+
// Simulate user speaking after 2 seconds
|
| 120 |
+
setTimeout(() => {
|
| 121 |
+
stopListening();
|
| 122 |
+
simulateResponse();
|
| 123 |
+
}, 2000);
|
| 124 |
+
}
|
| 125 |
+
});
|
| 126 |
+
|
| 127 |
+
function stopListening() {
|
| 128 |
+
isListening = false;
|
| 129 |
+
voiceOrb.style.animation = 'pulse 3s infinite ease-in-out';
|
| 130 |
+
voiceOrb.style.boxShadow = '0 10px 30px rgba(184, 115, 51, 0.3)';
|
| 131 |
+
promptText.textContent = "How can I help?";
|
| 132 |
+
voiceButton.classList.remove('animate-pulse');
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
function simulateResponse() {
|
| 136 |
+
// Add user message
|
| 137 |
+
const userMessage = document.createElement('div');
|
| 138 |
+
userMessage.className = 'conversation-card rounded-lg p-4';
|
| 139 |
+
userMessage.textContent = "What's the weather today?";
|
| 140 |
+
conversationArea.appendChild(userMessage);
|
| 141 |
+
|
| 142 |
+
// Show thinking state
|
| 143 |
+
promptText.textContent = "Thinking...";
|
| 144 |
+
voiceOrb.style.animation = 'none';
|
| 145 |
+
voiceOrb.innerHTML = '<div class="w-full h-full rounded-full border-4 border-transparent border-t-purple-500 animate-spin"></div>';
|
| 146 |
+
|
| 147 |
+
// Simulate AI response after 3 seconds
|
| 148 |
+
setTimeout(() => {
|
| 149 |
+
promptText.textContent = "How can I help?";
|
| 150 |
+
voiceOrb.style.animation = 'pulse 3s infinite ease-in-out';
|
| 151 |
+
voiceOrb.innerHTML = '';
|
| 152 |
+
|
| 153 |
+
// Add AI response
|
| 154 |
+
const aiMessage = document.createElement('div');
|
| 155 |
+
aiMessage.className = 'conversation-card rounded-lg p-4';
|
| 156 |
+
aiMessage.textContent = "It's currently sunny and 72°F in your area.";
|
| 157 |
+
conversationArea.appendChild(aiMessage);
|
| 158 |
+
|
| 159 |
+
// Show results cards
|
| 160 |
+
resultsArea.classList.remove('hidden');
|
| 161 |
+
|
| 162 |
+
// Scroll to bottom
|
| 163 |
+
conversationArea.scrollTop = conversationArea.scrollHeight;
|
| 164 |
+
}, 3000);
|
| 165 |
+
}
|
| 166 |
+
</script>
|
| 167 |
+
</body>
|
| 168 |
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
App Concept: An elegant and minimalist mobile UI for a "Voice AI Assistant," inspired by a premium physical product made of matte white ceramic, warm walnut wood, and brushed copper accents.
|
| 2 |
+
|
| 3 |
+
Core Design Principles:
|
| 4 |
+
|
| 5 |
+
Minimalist & Clean: The interface should be uncluttered, with a focus on typography, negative space, and a simple color palette. Avoid unnecessary buttons, lines, or icons.
|
| 6 |
+
|
| 7 |
+
Organic & Fluid: Animations and transitions should be smooth and natural, mimicking the flow of conversation. The design should feel calm and responsive, not jarring or robotic.
|
| 8 |
+
|
| 9 |
+
Premium Materials Translated to UI:
|
| 10 |
+
|
| 11 |
+
Background: Use a soft, off-white or light gray gradient, reminiscent of matte ceramic.
|
| 12 |
+
|
| 13 |
+
Primary Accent Color: A warm, inviting copper or rose gold for key interactive elements.
|
| 14 |
+
|
| 15 |
+
Secondary Accent: Use dark, rich brown tones inspired by walnut wood for secondary elements or backgrounds in different sections.
|
| 16 |
+
|
| 17 |
+
Text: Use a dark, charcoal gray instead of pure black for a softer feel.
|
| 18 |
+
|
| 19 |
+
Key Screens & Elements:
|
| 20 |
+
|
| 21 |
+
1. Main Interaction Screen (Idle/Listening State):
|
| 22 |
+
|
| 23 |
+
Visual Centerpiece: A pulsating orb or a fluid, wave-like animation at the center of the screen.
|
| 24 |
+
|
| 25 |
+
When idle, it should have a subtle, calm breathing effect. The orb's color should be the main copper accent.
|
| 26 |
+
|
| 27 |
+
When listening, the animation should become more dynamic and responsive to sound, perhaps mirroring a voice waveform.
|
| 28 |
+
|
| 29 |
+
Prompt Text: A simple, elegant greeting like "How can I help?" or "Ask me anything." in a clean, sans-serif font.
|
| 30 |
+
|
| 31 |
+
Background: The soft, off-white ceramic-inspired background.
|
| 32 |
+
|
| 33 |
+
Navigation: No visible navigation bar. Access to settings or history could be through a subtle icon or a swipe gesture.
|
| 34 |
+
|
| 35 |
+
2. Responding/Results Screen:
|
| 36 |
+
|
| 37 |
+
AI Response Area: The AI's spoken response should be transcribed and displayed in clean, legible text.
|
| 38 |
+
|
| 39 |
+
Content Cards: For complex queries (e.g., weather, search results), display information in clean, rounded cards with soft drop shadows. These cards should have a slightly darker background (like the "walnut" color) to differentiate them from the main interface.
|
| 40 |
+
|
| 41 |
+
Visual Feedback: The central orb should morph into a "thinking" or "processing" state—perhaps a spinning ring or a more complex, intricate pattern—while fetching a response.
|
| 42 |
+
|
| 43 |
+
Conversation History: The user's prompt and the AI's response should appear as a clear, chat-like thread that scrolls up from the bottom.
|
| 44 |
+
|
| 45 |
+
3. Animations & Micro-interactions:
|
| 46 |
+
|
| 47 |
+
State Transitions: The transition from listening to thinking to speaking should be a seamless, fluid animation of the central orb. No hard cuts.
|
| 48 |
+
|
| 49 |
+
Button Presses: Interactive elements should have a subtle "press" effect, perhaps scaling down slightly and changing opacity.
|
| 50 |
+
|
| 51 |
+
Loading: Use the central orb animation as the primary loading indicator. Avoid generic spinners.
|
| 52 |
+
|
| 53 |
+
Typography & Iconography:
|
| 54 |
+
|
| 55 |
+
Font: A modern, clean, and friendly sans-serif font family (like Inter, Manrope, or SF Pro). Use varied weights to establish a clear visual hierarchy.
|
| 56 |
+
|
| 57 |
+
Icons: If icons are necessary (e.g., for a settings menu), they should be minimalist, line-art style, and colored with the copper accent.
|
| 58 |
+
|
| 59 |
+
Overall Vibe: The app should feel less like a tool and more like a calm, intelligent companion. It's sophisticated, intuitive, and beautiful to look at, directly reflecting the elegance of its physical counterpart.
|
| 60 |
+
please remove this
|
| 61 |
+
can you change the color to purple
|