Spaces:
Running
Running
Make me a full copy of yourself that I can use - Initial Deployment
Browse files- README.md +7 -5
- index.html +208 -18
- 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: boboai-com-created-byrt
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: green
|
| 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,209 @@
|
|
| 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>AI Assistant Clone</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
|
| 9 |
+
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
+
<style>
|
| 13 |
+
.gradient-bg {
|
| 14 |
+
background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
|
| 15 |
+
}
|
| 16 |
+
.chat-bubble {
|
| 17 |
+
border-radius: 1.5rem;
|
| 18 |
+
max-width: 80%;
|
| 19 |
+
}
|
| 20 |
+
.user-bubble {
|
| 21 |
+
border-bottom-right-radius: 0.5rem;
|
| 22 |
+
}
|
| 23 |
+
.ai-bubble {
|
| 24 |
+
border-bottom-left-radius: 0.5rem;
|
| 25 |
+
}
|
| 26 |
+
.typing-indicator span {
|
| 27 |
+
display: inline-block;
|
| 28 |
+
width: 8px;
|
| 29 |
+
height: 8px;
|
| 30 |
+
border-radius: 50%;
|
| 31 |
+
background-color: #6b7280;
|
| 32 |
+
margin: 0 2px;
|
| 33 |
+
animation: bounce 1.5s infinite ease-in-out;
|
| 34 |
+
}
|
| 35 |
+
.typing-indicator span:nth-child(2) {
|
| 36 |
+
animation-delay: 0.2s;
|
| 37 |
+
}
|
| 38 |
+
.typing-indicator span:nth-child(3) {
|
| 39 |
+
animation-delay: 0.4s;
|
| 40 |
+
}
|
| 41 |
+
@keyframes bounce {
|
| 42 |
+
0%, 100% { transform: translateY(0); }
|
| 43 |
+
50% { transform: translateY(-5px); }
|
| 44 |
+
}
|
| 45 |
+
</style>
|
| 46 |
+
</head>
|
| 47 |
+
<body class="min-h-screen bg-gray-100">
|
| 48 |
+
<div class="gradient-bg text-white py-6 shadow-lg">
|
| 49 |
+
<div class="container mx-auto px-4">
|
| 50 |
+
<div class="flex items-center justify-between">
|
| 51 |
+
<div class="flex items-center space-x-3">
|
| 52 |
+
<i data-feather="cpu" class="w-8 h-8"></i>
|
| 53 |
+
<h1 class="text-2xl font-bold">AI Assistant Clone</h1>
|
| 54 |
+
</div>
|
| 55 |
+
<button id="copyBtn" class="bg-white text-purple-600 px-4 py-2 rounded-full font-medium hover:bg-gray-100 transition">
|
| 56 |
+
<i data-feather="copy" class="inline mr-2"></i> Copy Code
|
| 57 |
+
</button>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
<div class="container mx-auto px-4 py-8 max-w-4xl">
|
| 63 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
|
| 64 |
+
<div class="p-6">
|
| 65 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-4">How to Use This Clone</h2>
|
| 66 |
+
<p class="text-gray-600 mb-4">This is a functional clone of the AI assistant interface. You can copy the complete code below to use it in your own projects.</p>
|
| 67 |
+
|
| 68 |
+
<div class="bg-gray-800 text-gray-200 p-4 rounded-lg mb-6 overflow-x-auto">
|
| 69 |
+
<pre><code id="fullCode" class="text-sm">
|
| 70 |
+
<!-- The full code will be inserted here by JavaScript -->
|
| 71 |
+
</code></pre>
|
| 72 |
+
</div>
|
| 73 |
+
|
| 74 |
+
<div class="flex flex-wrap gap-4">
|
| 75 |
+
<button id="copyAllBtn" class="bg-purple-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-purple-700 transition flex items-center">
|
| 76 |
+
<i data-feather="copy" class="mr-2"></i> Copy All Code
|
| 77 |
+
</button>
|
| 78 |
+
<button id="downloadBtn" class="bg-gray-200 text-gray-800 px-4 py-2 rounded-lg font-medium hover:bg-gray-300 transition flex items-center">
|
| 79 |
+
<i data-feather="download" class="mr-2"></i> Download HTML
|
| 80 |
+
</button>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
|
| 85 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 86 |
+
<div class="p-6">
|
| 87 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-4">Live Preview</h2>
|
| 88 |
+
<div class="border border-gray-200 rounded-lg p-4 mb-4 h-96 overflow-y-auto" id="chatContainer">
|
| 89 |
+
<div class="flex mb-4">
|
| 90 |
+
<div class="bg-purple-100 text-purple-800 p-4 chat-bubble ai-bubble">
|
| 91 |
+
<p>Hello! I'm your AI assistant clone. You can interact with me here in this demo interface.</p>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
|
| 96 |
+
<div class="flex items-center">
|
| 97 |
+
<input type="text" id="userInput" placeholder="Type your message..." class="flex-1 border border-gray-300 rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500">
|
| 98 |
+
<button id="sendBtn" class="bg-purple-600 text-white px-4 py-2 rounded-r-lg hover:bg-purple-700 transition">
|
| 99 |
+
<i data-feather="send"></i>
|
| 100 |
+
</button>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<script>
|
| 107 |
+
// Initialize AOS and Feather Icons
|
| 108 |
+
AOS.init();
|
| 109 |
+
feather.replace();
|
| 110 |
+
|
| 111 |
+
// Get the current HTML content
|
| 112 |
+
const fullCodeElement = document.getElementById('fullCode');
|
| 113 |
+
const currentHtml = document.documentElement.outerHTML;
|
| 114 |
+
fullCodeElement.textContent = currentHtml;
|
| 115 |
+
|
| 116 |
+
// Copy functionality
|
| 117 |
+
document.getElementById('copyAllBtn').addEventListener('click', () => {
|
| 118 |
+
navigator.clipboard.writeText(currentHtml).then(() => {
|
| 119 |
+
alert('All code copied to clipboard!');
|
| 120 |
+
});
|
| 121 |
+
});
|
| 122 |
+
|
| 123 |
+
// Download functionality
|
| 124 |
+
document.getElementById('downloadBtn').addEventListener('click', () => {
|
| 125 |
+
const blob = new Blob([currentHtml], { type: 'text/html' });
|
| 126 |
+
const url = URL.createObjectURL(blob);
|
| 127 |
+
const a = document.createElement('a');
|
| 128 |
+
a.href = url;
|
| 129 |
+
a.download = 'ai-assistant-clone.html';
|
| 130 |
+
document.body.appendChild(a);
|
| 131 |
+
a.click();
|
| 132 |
+
document.body.removeChild(a);
|
| 133 |
+
URL.revokeObjectURL(url);
|
| 134 |
+
});
|
| 135 |
+
|
| 136 |
+
// Simple chat functionality for demo
|
| 137 |
+
const chatContainer = document.getElementById('chatContainer');
|
| 138 |
+
const userInput = document.getElementById('userInput');
|
| 139 |
+
const sendBtn = document.getElementById('sendBtn');
|
| 140 |
+
|
| 141 |
+
function addUserMessage(message) {
|
| 142 |
+
const messageDiv = document.createElement('div');
|
| 143 |
+
messageDiv.className = 'flex mb-4 justify-end';
|
| 144 |
+
messageDiv.innerHTML = `
|
| 145 |
+
<div class="bg-purple-600 text-white p-4 chat-bubble user-bubble">
|
| 146 |
+
<p>${message}</p>
|
| 147 |
+
</div>
|
| 148 |
+
`;
|
| 149 |
+
chatContainer.appendChild(messageDiv);
|
| 150 |
+
chatContainer.scrollTop = chatContainer.scrollHeight;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
function addAiResponse(message) {
|
| 154 |
+
// Show typing indicator
|
| 155 |
+
const typingDiv = document.createElement('div');
|
| 156 |
+
typingDiv.className = 'flex mb-4';
|
| 157 |
+
typingDiv.innerHTML = `
|
| 158 |
+
<div class="bg-purple-100 text-purple-800 p-4 chat-bubble ai-bubble typing-indicator">
|
| 159 |
+
<span></span>
|
| 160 |
+
<span></span>
|
| 161 |
+
<span></span>
|
| 162 |
+
</div>
|
| 163 |
+
`;
|
| 164 |
+
chatContainer.appendChild(typingDiv);
|
| 165 |
+
chatContainer.scrollTop = chatContainer.scrollHeight;
|
| 166 |
+
|
| 167 |
+
// After delay, replace with actual response
|
| 168 |
+
setTimeout(() => {
|
| 169 |
+
chatContainer.removeChild(typingDiv);
|
| 170 |
+
const messageDiv = document.createElement('div');
|
| 171 |
+
messageDiv.className = 'flex mb-4';
|
| 172 |
+
messageDiv.innerHTML = `
|
| 173 |
+
<div class="bg-purple-100 text-purple-800 p-4 chat-bubble ai-bubble">
|
| 174 |
+
<p>${message}</p>
|
| 175 |
+
</div>
|
| 176 |
+
`;
|
| 177 |
+
chatContainer.appendChild(messageDiv);
|
| 178 |
+
chatContainer.scrollTop = chatContainer.scrollHeight;
|
| 179 |
+
}, 1000 + Math.random() * 1000);
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
sendBtn.addEventListener('click', () => {
|
| 183 |
+
const message = userInput.value.trim();
|
| 184 |
+
if (message) {
|
| 185 |
+
addUserMessage(message);
|
| 186 |
+
userInput.value = '';
|
| 187 |
+
|
| 188 |
+
// Simple responses
|
| 189 |
+
const responses = [
|
| 190 |
+
"I'm a clone of the AI assistant. I can help with basic questions!",
|
| 191 |
+
"That's an interesting point. What else would you like to know?",
|
| 192 |
+
"I'm designed to demonstrate how to create an AI assistant interface.",
|
| 193 |
+
"You can customize my responses by modifying the JavaScript code.",
|
| 194 |
+
"This is a simulated conversation to show the interface in action."
|
| 195 |
+
];
|
| 196 |
+
|
| 197 |
+
const randomResponse = responses[Math.floor(Math.random() * responses.length)];
|
| 198 |
+
addAiResponse(randomResponse);
|
| 199 |
+
}
|
| 200 |
+
});
|
| 201 |
+
|
| 202 |
+
userInput.addEventListener('keypress', (e) => {
|
| 203 |
+
if (e.key === 'Enter') {
|
| 204 |
+
sendBtn.click();
|
| 205 |
+
}
|
| 206 |
+
});
|
| 207 |
+
</script>
|
| 208 |
+
</body>
|
| 209 |
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Make me a full copy of yourself that I can use
|