S-Dreamer commited on
Commit
5fb7578
·
verified ·
1 Parent(s): db1b4a7

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +369 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Claudereplit
3
- emoji: 📚
4
- colorFrom: red
5
- colorTo: indigo
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: claudereplit
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
+ colorTo: blue
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,369 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
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>Claude AI + Replit Integration</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ claude: {
15
+ light: '#f0f9ff',
16
+ DEFAULT: '#0284c7',
17
+ dark: '#0c4a6e'
18
+ },
19
+ replit: {
20
+ light: '#f5f5f5',
21
+ DEFAULT: '#f26207',
22
+ dark: '#121212'
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ </script>
29
+ <style>
30
+ .code-editor {
31
+ font-family: 'Fira Code', monospace;
32
+ font-size: 14px;
33
+ }
34
+ .collaboration-avatar {
35
+ transition: all 0.3s ease;
36
+ }
37
+ .collaboration-avatar:hover {
38
+ transform: scale(1.2);
39
+ z-index: 10;
40
+ }
41
+ .message-container {
42
+ max-height: 300px;
43
+ overflow-y: auto;
44
+ }
45
+ .typing-indicator {
46
+ display: inline-block;
47
+ width: 10px;
48
+ height: 10px;
49
+ border-radius: 50%;
50
+ background-color: #9ca3af;
51
+ margin: 0 2px;
52
+ animation: typing 1.4s infinite both;
53
+ }
54
+ .typing-indicator:nth-child(2) {
55
+ animation-delay: 0.2s;
56
+ }
57
+ .typing-indicator:nth-child(3) {
58
+ animation-delay: 0.4s;
59
+ }
60
+ @keyframes typing {
61
+ 0%, 60%, 100% { transform: translateY(0); }
62
+ 30% { transform: translateY(-10px); }
63
+ }
64
+ .gradient-bg {
65
+ background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
66
+ }
67
+ </style>
68
+ </head>
69
+ <body class="gradient-bg min-h-screen">
70
+ <!-- Header -->
71
+ <header class="bg-white shadow-md py-4 px-6 flex justify-between items-center">
72
+ <div class="flex items-center">
73
+ <div class="bg-claude-dark text-white p-2 rounded-lg mr-3">
74
+ <i class="fa-solid fa-robot text-xl"></i>
75
+ </div>
76
+ <h1 class="text-2xl font-bold text-gray-800">Claude <span class="text-claude-DEFAULT">+</span> Replit</h1>
77
+ </div>
78
+ <div class="flex items-center space-x-4">
79
+ <button class="bg-replit-DEFAULT hover:bg-orange-700 text-white px-4 py-2 rounded-lg font-medium transition">
80
+ <i class="fa-solid fa-plug mr-2"></i>Connect to Replit
81
+ </button>
82
+ <div class="relative">
83
+ <img src="https://i.pravatar.cc/40?img=5" alt="User" class="rounded-full w-10 h-10 border-2 border-claude-DEFAULT">
84
+ <span class="absolute bottom-0 right-0 bg-green-500 rounded-full w-3 h-3 border-2 border-white"></span>
85
+ </div>
86
+ </div>
87
+ </header>
88
+
89
+ <main class="container mx-auto p-4 md:p-6">
90
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
91
+ <!-- Left Panel - Project Info & Collaboration -->
92
+ <div class="lg:col-span-1 space-y-6">
93
+ <!-- Project Info Card -->
94
+ <div class="bg-white rounded-xl shadow-md p-5">
95
+ <h2 class="text-xl font-bold text-gray-800 mb-4">Project Information</h2>
96
+ <div class="space-y-4">
97
+ <div>
98
+ <label class="block text-sm font-medium text-gray-600">Project Name</label>
99
+ <p class="text-gray-800 font-medium">AI-Powered Web App</p>
100
+ </div>
101
+ <div>
102
+ <label class="block text-sm font-medium text-gray-600">Replit Project</label>
103
+ <p class="text-replit-DEFAULT font-medium">web-app-ai-integration</p>
104
+ </div>
105
+ <div>
106
+ <label class="block text-sm font-medium text-gray-600">Language</label>
107
+ <p class="text-gray-800 font-medium">JavaScript + Node.js</p>
108
+ </div>
109
+ <div>
110
+ <label class="block text-sm font-medium text-gray-600">Last Updated</label>
111
+ <p class="text-gray-800 font-medium">Just now</p>
112
+ </div>
113
+ </div>
114
+ </div>
115
+
116
+ <!-- Collaboration Card -->
117
+ <div class="bg-white rounded-xl shadow-md p-5">
118
+ <div class="flex justify-between items-center mb-4">
119
+ <h2 class="text-xl font-bold text-gray-800">Collaborators</h2>
120
+ <button class="text-claude-DEFAULT hover:text-claude-dark">
121
+ <i class="fa-solid fa-user-plus"></i>
122
+ </button>
123
+ </div>
124
+ <div class="flex flex-wrap gap-2 mb-4">
125
+ <div class="collaboration-avatar relative" title="You">
126
+ <img src="https://i.pravatar.cc/40?img=5" alt="User" class="rounded-full w-10 h-10 border-2 border-claude-DEFAULT">
127
+ </div>
128
+ <div class="collaboration-avatar relative" title="Sarah (Editing)">
129
+ <img src="https://i.pravatar.cc/40?img=8" alt="Sarah" class="rounded-full w-10 h-10 border-2 border-green-500">
130
+ <div class="absolute -bottom-1 -right-1 bg-green-500 rounded-full w-4 h-4 flex items-center justify-center">
131
+ <i class="fa-solid fa-pen text-white text-xs"></i>
132
+ </div>
133
+ </div>
134
+ <div class="collaboration-avatar relative" title="Alex (Viewing)">
135
+ <img src="https://i.pravatar.cc/40?img=11" alt="Alex" class="rounded-full w-10 h-10 border-2 border-blue-500">
136
+ </div>
137
+ <div class="collaboration-avatar relative" title="Maya">
138
+ <img src="https://i.pravatar.cc/40?img=3" alt="Maya" class="rounded-full w-10 h-10 border-2 border-gray-300">
139
+ </div>
140
+ </div>
141
+ <div class="bg-claude-light p-3 rounded-lg">
142
+ <p class="text-sm text-claude-dark flex items-center">
143
+ <span class="bg-green-500 rounded-full w-3 h-3 mr-2 animate-pulse"></span>
144
+ <span>Sarah is editing main.js</span>
145
+ </p>
146
+ </div>
147
+ </div>
148
+
149
+ <!-- AI Assistant Card -->
150
+ <div class="bg-white rounded-xl shadow-md p-5">
151
+ <h2 class="text-xl font-bold text-gray-800 mb-4">Claude Assistant</h2>
152
+ <div class="bg-claude-light p-4 rounded-lg mb-4">
153
+ <p class="text-claude-dark">I can help you write, explain, or debug code. How can I assist with your project today?</p>
154
+ </div>
155
+ <div class="space-y-2">
156
+ <button class="w-full bg-claude-DEFAULT hover:bg-claude-dark text-white py-2 rounded-lg text-sm font-medium">
157
+ <i class="fa-solid fa-wand-magic-sparkles mr-2"></i>Generate Code
158
+ </button>
159
+ <button class="w-full bg-white border border-claude-DEFAULT text-claude-DEFAULT hover:bg-claude-light py-2 rounded-lg text-sm font-medium">
160
+ <i class="fa-solid fa-bug mr-2"></i>Debug Code
161
+ </button>
162
+ <button class="w-full bg-white border border-claude-DEFAULT text-claude-DEFAULT hover:bg-claude-light py-2 rounded-lg text-sm font-medium">
163
+ <i class="fa-solid fa-gears mr-2"></i>Optimize Code
164
+ </button>
165
+ </div>
166
+ </div>
167
+ </div>
168
+
169
+ <!-- Middle Panel - Code Editor -->
170
+ <div class="lg:col-span-2">
171
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
172
+ <div class="bg-gray-100 px-4 py-2 flex justify-between items-center">
173
+ <div class="flex space-x-2">
174
+ <div class="w-3 h-3 bg-red-500 rounded-full"></div>
175
+ <div class="w-3 h-3 bg-yellow-500 rounded-full"></div>
176
+ <div class="w-3 h-3 bg-green-500 rounded-full"></div>
177
+ </div>
178
+ <div class="text-sm font-medium text-gray-600">
179
+ main.js • Saved
180
+ </div>
181
+ <div class="flex space-x-2">
182
+ <button class="text-gray-500 hover:text-gray-700">
183
+ <i class="fa-solid fa-play text-green-500"></i>
184
+ </button>
185
+ <button class="text-gray-500 hover:text-gray-700">
186
+ <i class="fa-solid fa-floppy-disk text-blue-500"></i>
187
+ </button>
188
+ <button class="text-gray-500 hover:text-gray-700">
189
+ <i class="fa-solid fa-rotate-right text-claude-DEFAULT"></i>
190
+ </button>
191
+ </div>
192
+ </div>
193
+ <div class="p-4 code-editor">
194
+ <pre class="text-gray-800 whitespace-pre-wrap"><code>// AI-generated code for image recognition
195
+ const tf = require('@tensorflow/tfjs');
196
+ const mobilenet = require('@tensorflow-models/mobilenet');
197
+
198
+ class ImageClassifier {
199
+ constructor() {
200
+ this.model = null;
201
+ this.initialized = false;
202
+ }
203
+
204
+ async init() {
205
+ console.log('Loading MobileNet model...');
206
+ this.model = await mobilenet.load();
207
+ this.initialized = true;
208
+ console.log('Model loaded successfully');
209
+ }
210
+
211
+ async classify(imageElement) {
212
+ if (!this.initialized) {
213
+ await this.init();
214
+ }
215
+
216
+ // Classify the image
217
+ const predictions = await this.model.classify(imageElement);
218
+ return predictions;
219
+ }
220
+ }
221
+
222
+ // Export for use in Replit environment
223
+ module.exports = ImageClassifier;</code></pre>
224
+ </div>
225
+ </div>
226
+
227
+ <div class="mt-6 bg-white rounded-xl shadow-md p-5">
228
+ <h2 class="text-xl font-bold text-gray-800 mb-4">Output</h2>
229
+ <div class="bg-gray-900 text-green-400 p-4 rounded-lg font-mono text-sm h-40 overflow-y-auto">
230
+ <div class="flex items-center mb-2">
231
+ <span class="text-gray-400">$</span>
232
+ <span class="ml-2">node main.js</span>
233
+ </div>
234
+ <div>> Loading MobileNet model...</div>
235
+ <div>> Model loaded successfully</div>
236
+ <div>> Execution time: 1.2s</div>
237
+ <div class="mt-4 text-white">// Ready for input</div>
238
+ </div>
239
+ </div>
240
+ </div>
241
+ </div>
242
+
243
+ <!-- Chat & Collaboration Section -->
244
+ <div class="mt-6 bg-white rounded-xl shadow-md p-5">
245
+ <h2 class="text-xl font-bold text-gray-800 mb-4">Team Collaboration</h2>
246
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
247
+ <!-- Chat -->
248
+ <div>
249
+ <h3 class="font-medium text-gray-700 mb-3">Team Chat</h3>
250
+ <div class="message-container border border-gray-200 rounded-lg p-4 h-64">
251
+ <div class="mb-4 flex items-start">
252
+ <img src="https://i.pravatar.cc/30?img=8" alt="Sarah" class="rounded-full mr-3 mt-1">
253
+ <div>
254
+ <p class="font-medium">Sarah</p>
255
+ <p class="text-gray-700 bg-gray-100 p-3 rounded-lg">I've updated the model loading sequence to be more efficient. Can you review?</p>
256
+ </div>
257
+ </div>
258
+ <div class="mb-4 flex items-start">
259
+ <img src="https://i.pravatar.cc/30?img=5" alt="You" class="rounded-full mr-3 mt-1">
260
+ <div>
261
+ <p class="font-medium">You</p>
262
+ <p class="text-gray-700 bg-claude-light p-3 rounded-lg">Looks good! I'll test it with the new image dataset.</p>
263
+ </div>
264
+ </div>
265
+ <div class="flex items-start">
266
+ <img src="https://i.pravatar.cc/30?img=11" alt="Alex" class="rounded-full mr-3 mt-1">
267
+ <div>
268
+ <p class="font-medium">Alex</p>
269
+ <p class="text-gray-700 bg-gray-100 p-3 rounded-lg">I'm working on the UI component for displaying results.</p>
270
+ <div class="flex mt-2 ml-2">
271
+ <span class="typing-indicator"></span>
272
+ <span class="typing-indicator"></span>
273
+ <span class="typing-indicator"></span>
274
+ </div>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ <div class="flex mt-3">
279
+ <input type="text" placeholder="Type a message..." class="flex-1 border border-gray-300 rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-claude-DEFAULT">
280
+ <button class="bg-claude-DEFAULT text-white px-4 rounded-r-lg">
281
+ <i class="fa-solid fa-paper-plane"></i>
282
+ </button>
283
+ </div>
284
+ </div>
285
+
286
+ <!-- Activity Feed -->
287
+ <div>
288
+ <h3 class="font-medium text-gray-700 mb-3">Recent Activity</h3>
289
+ <div class="border border-gray-200 rounded-lg p-4 h-64 overflow-y-auto">
290
+ <div class="flex items-start mb-4">
291
+ <div class="bg-green-100 p-2 rounded-full mr-3">
292
+ <i class="fa-solid fa-code-pull-request text-green-600"></i>
293
+ </div>
294
+ <div>
295
+ <p class="font-medium">Sarah updated main.js</p>
296
+ <p class="text-gray-500 text-sm">2 minutes ago</p>
297
+ </div>
298
+ </div>
299
+ <div class="flex items-start mb-4">
300
+ <div class="bg-blue-100 p-2 rounded-full mr-3">
301
+ <i class="fa-solid fa-terminal text-blue-600"></i>
302
+ </div>
303
+ <div>
304
+ <p class="font-medium">You executed the code</p>
305
+ <p class="text-gray-500 text-sm">5 minutes ago</p>
306
+ </div>
307
+ </div>
308
+ <div class="flex items-start mb-4">
309
+ <div class="bg-purple-100 p-2 rounded-full mr-3">
310
+ <i class="fa-solid fa-comment text-purple-600"></i>
311
+ </div>
312
+ <div>
313
+ <p class="font-medium">Alex commented on UI components</p>
314
+ <p class="text-gray-500 text-sm">12 minutes ago</p>
315
+ </div>
316
+ </div>
317
+ <div class="flex items-start mb-4">
318
+ <div class="bg-yellow-100 p-2 rounded-full mr-3">
319
+ <i class="fa-solid fa-code-branch text-yellow-600"></i>
320
+ </div>
321
+ <div>
322
+ <p class="font-medium">Maya created a new branch</p>
323
+ <p class="text-gray-500 text-sm">18 minutes ago</p>
324
+ </div>
325
+ </div>
326
+ <div class="flex items-start">
327
+ <div class="bg-claude-light p-2 rounded-full mr-3">
328
+ <i class="fa-solid fa-robot text-claude-DEFAULT"></i>
329
+ </div>
330
+ <div>
331
+ <p class="font-medium">Claude suggested code optimization</p>
332
+ <p class="text-gray-500 text-sm">25 minutes ago</p>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </div>
337
+ </div>
338
+ </div>
339
+ </main>
340
+
341
+ <footer class="mt-8 py-6 px-4 text-center text-gray-600 text-sm">
342
+ <p>Claude + Replit Integration Plugin • v1.0.0</p>
343
+ <p class="mt-2">Need help? Check our <a href="#" class="text-claude-DEFAULT hover:underline">documentation</a> or <a href="#" class="text-claude-DEFAULT hover:underline">contact support</a></p>
344
+ </footer>
345
+
346
+ <script>
347
+ // Simulate typing effect in the chat
348
+ document.addEventListener('DOMContentLoaded', function() {
349
+ // Simulate AI assistant response after a delay
350
+ setTimeout(function() {
351
+ const chatContainer = document.querySelector('.message-container');
352
+ const newMessage = document.createElement('div');
353
+ newMessage.className = 'mb-4 flex items-start';
354
+ newMessage.innerHTML = `
355
+ <div class="bg-claude-light p-2 rounded-full mr-3">
356
+ <i class="fa-solid fa-robot text-claude-DEFAULT"></i>
357
+ </div>
358
+ <div>
359
+ <p class="font-medium">Claude</p>
360
+ <p class="text-gray-700 bg-claude-light p-3 rounded-lg">I noticed you're working with TensorFlow.js. Would you like me to suggest optimizations for model inference?</p>
361
+ </div>
362
+ `;
363
+ chatContainer.appendChild(newMessage);
364
+ chatContainer.scrollTop = chatContainer.scrollHeight;
365
+ }, 3000);
366
+ });
367
+ </script>
368
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=S-Dreamer/claudereplit" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
369
+ </html>