Rafa26br commited on
Commit
786fea3
·
verified ·
1 Parent(s): 76f7d40

Crie uma plataforma de Vídeos com inteligência artificial, a inteligência artificial tem que fazer tudo o que o dono dela mandar. - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +295 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Plataformas
3
- emoji: 🏃
4
- colorFrom: pink
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: plataformas
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: yellow
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,295 @@
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>AI Video Platform</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
+ <style>
10
+ .video-container {
11
+ position: relative;
12
+ padding-bottom: 56.25%; /* 16:9 aspect ratio */
13
+ height: 0;
14
+ overflow: hidden;
15
+ }
16
+ .video-container iframe {
17
+ position: absolute;
18
+ top: 0;
19
+ left: 0;
20
+ width: 100%;
21
+ height: 100%;
22
+ }
23
+ .ai-response {
24
+ max-height: 200px;
25
+ overflow-y: auto;
26
+ transition: all 0.3s ease;
27
+ }
28
+ .ai-response.expanded {
29
+ max-height: 400px;
30
+ }
31
+ .command-history {
32
+ max-height: 300px;
33
+ overflow-y: auto;
34
+ }
35
+ .pulse {
36
+ animation: pulse 1.5s infinite;
37
+ }
38
+ @keyframes pulse {
39
+ 0% { opacity: 1; }
40
+ 50% { opacity: 0.5; }
41
+ 100% { opacity: 1; }
42
+ }
43
+ </style>
44
+ </head>
45
+ <body class="bg-gray-900 text-white min-h-screen">
46
+ <div class="container mx-auto px-4 py-8">
47
+ <!-- Header -->
48
+ <header class="flex flex-col md:flex-row justify-between items-center mb-8">
49
+ <div class="flex items-center mb-4 md:mb-0">
50
+ <i class="fas fa-robot text-3xl text-purple-500 mr-3"></i>
51
+ <h1 class="text-3xl font-bold bg-gradient-to-r from-purple-500 to-blue-500 bg-clip-text text-transparent">AI Video Platform</h1>
52
+ </div>
53
+ <div class="flex items-center space-x-4">
54
+ <div class="relative group">
55
+ <button class="bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-lg flex items-center">
56
+ <i class="fas fa-user mr-2"></i> Profile
57
+ </button>
58
+ <div class="absolute right-0 mt-2 w-48 bg-gray-800 rounded-md shadow-lg hidden group-hover:block z-10">
59
+ <a href="#" class="block px-4 py-2 hover:bg-gray-700">Settings</a>
60
+ <a href="#" class="block px-4 py-2 hover:bg-gray-700">Logout</a>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </header>
65
+
66
+ <!-- Main Content -->
67
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
68
+ <!-- Video Player Section -->
69
+ <div class="lg:col-span-2 space-y-6">
70
+ <div class="bg-gray-800 rounded-xl overflow-hidden shadow-lg">
71
+ <div class="video-container">
72
+ <iframe id="videoPlayer" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
73
+ </div>
74
+ <div class="p-4">
75
+ <h2 class="text-xl font-bold mb-2" id="videoTitle">AI Generated Video</h2>
76
+ <p class="text-gray-400 mb-4" id="videoDescription">This video was automatically generated by our AI based on your commands.</p>
77
+ <div class="flex justify-between items-center">
78
+ <div class="flex space-x-4">
79
+ <button class="text-gray-400 hover:text-white">
80
+ <i class="fas fa-thumbs-up"></i> <span class="ml-1">2.4K</span>
81
+ </button>
82
+ <button class="text-gray-400 hover:text-white">
83
+ <i class="fas fa-thumbs-down"></i> <span class="ml-1">34</span>
84
+ </button>
85
+ <button class="text-gray-400 hover:text-white">
86
+ <i class="fas fa-share"></i> <span class="ml-1">Share</span>
87
+ </button>
88
+ </div>
89
+ <button class="bg-purple-600 hover:bg-purple-700 px-3 py-1 rounded-lg">
90
+ <i class="fas fa-save mr-1"></i> Save
91
+ </button>
92
+ </div>
93
+ </div>
94
+ </div>
95
+
96
+ <!-- AI Command Section -->
97
+ <div class="bg-gray-800 rounded-xl p-6 shadow-lg">
98
+ <h3 class="text-lg font-semibold mb-4 flex items-center">
99
+ <i class="fas fa-terminal mr-2 text-purple-400"></i> AI Command Center
100
+ </h3>
101
+ <div class="mb-4">
102
+ <div class="flex items-center mb-2">
103
+ <span class="bg-gray-700 px-2 py-1 rounded text-sm mr-2">Prompt</span>
104
+ <span class="text-sm text-gray-400">What would you like the AI to do?</span>
105
+ </div>
106
+ <div class="flex">
107
+ <input type="text" id="aiCommand" placeholder="e.g. Create a video about space exploration with epic music"
108
+ class="flex-grow bg-gray-700 rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500">
109
+ <button id="sendCommand" class="bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-r-lg">
110
+ <i class="fas fa-paper-plane"></i>
111
+ </button>
112
+ </div>
113
+ </div>
114
+ <div class="bg-gray-900 rounded-lg p-4 ai-response" id="aiResponse">
115
+ <div class="flex items-center mb-2">
116
+ <div class="w-6 h-6 rounded-full bg-purple-500 flex items-center justify-center mr-2">
117
+ <i class="fas fa-robot text-xs"></i>
118
+ </div>
119
+ <span class="font-medium">AI Assistant</span>
120
+ </div>
121
+ <p class="text-gray-300" id="responseText">Hello! I'm your AI video assistant. Tell me what kind of video you'd like me to create or edit, and I'll handle everything for you. I can generate new videos, edit existing ones, add effects, change music, and much more!</p>
122
+ </div>
123
+ <button id="expandResponse" class="text-purple-400 text-sm mt-2 hover:text-purple-300 flex items-center">
124
+ <i class="fas fa-chevron-down mr-1"></i> Expand
125
+ </button>
126
+ </div>
127
+ </div>
128
+
129
+ <!-- Sidebar -->
130
+ <div class="space-y-6">
131
+ <!-- Quick Actions -->
132
+ <div class="bg-gray-800 rounded-xl p-6 shadow-lg">
133
+ <h3 class="text-lg font-semibold mb-4 flex items-center">
134
+ <i class="fas fa-bolt mr-2 text-yellow-400"></i> Quick Actions
135
+ </h3>
136
+ <div class="grid grid-cols-2 gap-3">
137
+ <button class="quick-action bg-gray-700 hover:bg-gray-600 p-3 rounded-lg flex flex-col items-center">
138
+ <i class="fas fa-magic text-purple-400 text-xl mb-2"></i>
139
+ <span class="text-sm">Enhance</span>
140
+ </button>
141
+ <button class="quick-action bg-gray-700 hover:bg-gray-600 p-3 rounded-lg flex flex-col items-center">
142
+ <i class="fas fa-music text-blue-400 text-xl mb-2"></i>
143
+ <span class="text-sm">Change Music</span>
144
+ </button>
145
+ <button class="quick-action bg-gray-700 hover:bg-gray-600 p-3 rounded-lg flex flex-col items-center">
146
+ <i class="fas fa-subscript text-green-400 text-xl mb-2"></i>
147
+ <span class="text-sm">Add Subtitles</span>
148
+ </button>
149
+ <button class="quick-action bg-gray-700 hover:bg-gray-600 p-3 rounded-lg flex flex-col items-center">
150
+ <i class="fas fa-cut text-red-400 text-xl mb-2"></i>
151
+ <span class="text-sm">Trim Video</span>
152
+ </button>
153
+ </div>
154
+ </div>
155
+
156
+ <!-- Command History -->
157
+ <div class="bg-gray-800 rounded-xl p-6 shadow-lg">
158
+ <h3 class="text-lg font-semibold mb-4 flex items-center">
159
+ <i class="fas fa-history mr-2 text-blue-400"></i> Command History
160
+ </h3>
161
+ <div class="command-history space-y-3">
162
+ <div class="bg-gray-900 rounded-lg p-3">
163
+ <p class="text-sm text-gray-400">"Make the video more dramatic"</p>
164
+ <p class="text-xs text-purple-400 mt-1">Completed 2 minutes ago</p>
165
+ </div>
166
+ <div class="bg-gray-900 rounded-lg p-3">
167
+ <p class="text-sm text-gray-400">"Add space background to the first 30 seconds"</p>
168
+ <p class="text-xs text-purple-400 mt-1">Completed 15 minutes ago</p>
169
+ </div>
170
+ <div class="bg-gray-900 rounded-lg p-3">
171
+ <p class="text-sm text-gray-400">"Generate a 2-minute video about AI advancements"</p>
172
+ <p class="text-xs text-purple-400 mt-1">Completed 1 hour ago</p>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ <!-- AI Status -->
178
+ <div class="bg-gray-800 rounded-xl p-6 shadow-lg">
179
+ <h3 class="text-lg font-semibold mb-4 flex items-center">
180
+ <i class="fas fa-circle-notch mr-2 text-green-400"></i> AI Status
181
+ </h3>
182
+ <div class="space-y-2">
183
+ <div class="flex justify-between items-center">
184
+ <span class="text-gray-400">Processing Power</span>
185
+ <span class="font-mono">78%</span>
186
+ </div>
187
+ <div class="w-full bg-gray-700 rounded-full h-2">
188
+ <div class="bg-green-500 h-2 rounded-full" style="width: 78%"></div>
189
+ </div>
190
+ <div class="flex justify-between items-center mt-3">
191
+ <span class="text-gray-400">Memory Usage</span>
192
+ <span class="font-mono">64%</span>
193
+ </div>
194
+ <div class="w-full bg-gray-700 rounded-full h-2">
195
+ <div class="bg-blue-500 h-2 rounded-full" style="width: 64%"></div>
196
+ </div>
197
+ <div class="flex justify-between items-center mt-3">
198
+ <span class="text-gray-400">Response Time</span>
199
+ <span class="font-mono">0.4s</span>
200
+ </div>
201
+ </div>
202
+ </div>
203
+ </div>
204
+ </div>
205
+ </div>
206
+
207
+ <script>
208
+ document.addEventListener('DOMContentLoaded', function() {
209
+ // Expand/collapse AI response
210
+ const expandBtn = document.getElementById('expandResponse');
211
+ const aiResponse = document.getElementById('aiResponse');
212
+
213
+ expandBtn.addEventListener('click', function() {
214
+ aiResponse.classList.toggle('expanded');
215
+ const icon = expandBtn.querySelector('i');
216
+ if (aiResponse.classList.contains('expanded')) {
217
+ icon.classList.remove('fa-chevron-down');
218
+ icon.classList.add('fa-chevron-up');
219
+ expandBtn.innerHTML = '<i class="fas fa-chevron-up mr-1"></i> Collapse';
220
+ } else {
221
+ icon.classList.remove('fa-chevron-up');
222
+ icon.classList.add('fa-chevron-down');
223
+ expandBtn.innerHTML = '<i class="fas fa-chevron-down mr-1"></i> Expand';
224
+ }
225
+ });
226
+
227
+ // Handle AI command submission
228
+ const commandInput = document.getElementById('aiCommand');
229
+ const sendBtn = document.getElementById('sendCommand');
230
+ const responseText = document.getElementById('responseText');
231
+
232
+ sendBtn.addEventListener('click', sendCommand);
233
+ commandInput.addEventListener('keypress', function(e) {
234
+ if (e.key === 'Enter') {
235
+ sendCommand();
236
+ }
237
+ });
238
+
239
+ function sendCommand() {
240
+ const command = commandInput.value.trim();
241
+ if (!command) return;
242
+
243
+ // Show loading state
244
+ responseText.innerHTML = '<div class="flex items-center"><div class="pulse"><i class="fas fa-spinner fa-spin mr-2"></i></div> Processing your command...</div>';
245
+ aiResponse.classList.add('expanded');
246
+ expandBtn.innerHTML = '<i class="fas fa-chevron-up mr-1"></i> Collapse';
247
+
248
+ // Simulate AI processing
249
+ setTimeout(() => {
250
+ const responses = [
251
+ `I've processed your command: "${command}". I'm now generating a new video with these specifications. It should be ready in about 30 seconds.`,
252
+ `Understood! I'll modify the current video based on: "${command}". The changes are being applied now.`,
253
+ `Great request! I'm creating a video that matches: "${command}". This might take a couple of minutes.`,
254
+ `"${command}" - excellent choice! I'm compiling footage and editing to match your vision.`
255
+ ];
256
+
257
+ const randomResponse = responses[Math.floor(Math.random() * responses.length)];
258
+ responseText.innerHTML = randomResponse;
259
+
260
+ // Simulate video change after another delay
261
+ setTimeout(() => {
262
+ responseText.innerHTML += '<div class="mt-4 p-2 bg-green-900 text-green-200 rounded text-sm"><i class="fas fa-check-circle mr-1"></i> Video updated successfully!</div>';
263
+
264
+ // Change video to demonstrate "action"
265
+ const videos = [
266
+ {id: "dQw4w9WgXcQ", title: "Space Exploration Documentary", desc: "A breathtaking journey through the cosmos, generated by AI based on your specifications."},
267
+ {id: "9bZkp7q19f0", title: "AI Revolution", desc: "Exploring the future of artificial intelligence and its impact on society."},
268
+ {id: "JGwWNGJdvx8", title: "Nature's Wonders", desc: "Stunning landscapes from around the world, compiled by AI."},
269
+ {id: "kJQP7kiw5Fk", title: "Urban Life Timelapse", desc: "The rhythm of city life captured in beautiful timelapse sequences."}
270
+ ];
271
+
272
+ const randomVideo = videos[Math.floor(Math.random() * videos.length)];
273
+ document.getElementById('videoPlayer').src = `https://www.youtube.com/embed/${randomVideo.id}?autoplay=1`;
274
+ document.getElementById('videoTitle').textContent = randomVideo.title;
275
+ document.getElementById('videoDescription').textContent = randomVideo.desc;
276
+ }, 2000);
277
+ }, 1500);
278
+
279
+ // Clear input
280
+ commandInput.value = '';
281
+ }
282
+
283
+ // Quick action buttons
284
+ const quickActions = document.querySelectorAll('.quick-action');
285
+ quickActions.forEach(button => {
286
+ button.addEventListener('click', function() {
287
+ const action = this.querySelector('span').textContent;
288
+ commandInput.value = action;
289
+ sendCommand();
290
+ });
291
+ });
292
+ });
293
+ </script>
294
+ <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=Rafa26br/plataformas" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
295
+ </html>