Add 2 files
Browse files- README.md +7 -5
- index.html +327 -19
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: video
|
| 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,327 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>VidGenAI - AI-Powered Video Creation</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 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
| 11 |
+
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Poppins', sans-serif;
|
| 14 |
+
background-color: #f8fafc;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.gradient-bg {
|
| 18 |
+
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.video-container {
|
| 22 |
+
aspect-ratio: 16/9;
|
| 23 |
+
background-color: #1e293b;
|
| 24 |
+
border-radius: 0.75rem;
|
| 25 |
+
overflow: hidden;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.chat-message-ai {
|
| 29 |
+
background-color: #f1f5f9;
|
| 30 |
+
border-radius: 1rem 1rem 1rem 0;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.chat-message-user {
|
| 34 |
+
background-color: #6366f1;
|
| 35 |
+
color: white;
|
| 36 |
+
border-radius: 1rem 1rem 0 1rem;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.recording-indicator {
|
| 40 |
+
animation: pulse 1.5s infinite;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
@keyframes pulse {
|
| 44 |
+
0% { opacity: 1; }
|
| 45 |
+
50% { opacity: 0.5; }
|
| 46 |
+
100% { opacity: 1; }
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.timeline-track {
|
| 50 |
+
height: 4px;
|
| 51 |
+
background-color: #e2e8f0;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.timeline-progress {
|
| 55 |
+
height: 100%;
|
| 56 |
+
background-color: #6366f1;
|
| 57 |
+
width: 0%;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.tooltip:hover .tooltip-text {
|
| 61 |
+
visibility: visible;
|
| 62 |
+
opacity: 1;
|
| 63 |
+
}
|
| 64 |
+
</style>
|
| 65 |
+
</head>
|
| 66 |
+
<body class="min-h-screen flex flex-col">
|
| 67 |
+
<!-- Header -->
|
| 68 |
+
<header class="gradient-bg text-white shadow-lg">
|
| 69 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 70 |
+
<div class="flex items-center space-x-2">
|
| 71 |
+
<i class="fas fa-video text-2xl"></i>
|
| 72 |
+
<h1 class="text-2xl font-bold">VidGenAI</h1>
|
| 73 |
+
</div>
|
| 74 |
+
<nav class="hidden md:flex space-x-6">
|
| 75 |
+
<a href="#" class="hover:text-indigo-200 transition">Home</a>
|
| 76 |
+
<a href="#" class="hover:text-indigo-200 transition">Templates</a>
|
| 77 |
+
<a href="#" class="hover:text-indigo-200 transition">Library</a>
|
| 78 |
+
<a href="#" class="hover:text-indigo-200 transition">Pricing</a>
|
| 79 |
+
</nav>
|
| 80 |
+
<div class="flex items-center space-x-4">
|
| 81 |
+
<button class="bg-white text-indigo-600 px-4 py-2 rounded-full font-medium hover:bg-indigo-50 transition">
|
| 82 |
+
Upgrade
|
| 83 |
+
</button>
|
| 84 |
+
<div class="w-10 h-10 rounded-full bg-indigo-200 flex items-center justify-center">
|
| 85 |
+
<i class="fas fa-user text-indigo-700"></i>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
</header>
|
| 90 |
+
|
| 91 |
+
<!-- Main Content -->
|
| 92 |
+
<main class="flex-1 container mx-auto px-4 py-8 flex flex-col lg:flex-row gap-8">
|
| 93 |
+
<!-- Video Editor Section -->
|
| 94 |
+
<section class="flex-1 flex flex-col">
|
| 95 |
+
<div class="flex justify-between items-center mb-4">
|
| 96 |
+
<h2 class="text-xl font-semibold text-gray-800">Video Editor</h2>
|
| 97 |
+
<div class="flex space-x-2">
|
| 98 |
+
<button class="px-4 py-2 bg-gray-200 rounded-lg hover:bg-gray-300 transition">
|
| 99 |
+
<i class="fas fa-cog mr-2"></i> Settings
|
| 100 |
+
</button>
|
| 101 |
+
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
|
| 102 |
+
<i class="fas fa-save mr-2"></i> Export
|
| 103 |
+
</button>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
|
| 107 |
+
<!-- Video Preview -->
|
| 108 |
+
<div class="video-container mb-4 relative">
|
| 109 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
| 110 |
+
<i class="fas fa-video text-5xl text-gray-500"></i>
|
| 111 |
+
</div>
|
| 112 |
+
<div class="absolute bottom-4 left-4 bg-black bg-opacity-50 text-white px-3 py-1 rounded-full text-sm">
|
| 113 |
+
<span class="recording-indicator">●</span> Recording...
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
<!-- Recording Controls -->
|
| 118 |
+
<div class="bg-white rounded-xl shadow-md p-4 mb-6">
|
| 119 |
+
<div class="flex justify-center space-x-4">
|
| 120 |
+
<button class="w-12 h-12 rounded-full bg-red-600 text-white flex items-center justify-center hover:bg-red-700 transition tooltip">
|
| 121 |
+
<i class="fas fa-stop"></i>
|
| 122 |
+
<span class="tooltip-text absolute -mt-16 bg-gray-800 text-white text-xs px-2 py-1 rounded">Stop Recording</span>
|
| 123 |
+
</button>
|
| 124 |
+
<button class="w-16 h-16 rounded-full bg-indigo-600 text-white flex items-center justify-center hover:bg-indigo-700 transition tooltip">
|
| 125 |
+
<i class="fas fa-video"></i>
|
| 126 |
+
<span class="tooltip-text absolute -mt-20 bg-gray-800 text-white text-xs px-2 py-1 rounded">Record Video</span>
|
| 127 |
+
</button>
|
| 128 |
+
<button class="w-12 h-12 rounded-full bg-gray-200 flex items-center justify-center hover:bg-gray-300 transition tooltip">
|
| 129 |
+
<i class="fas fa-microphone"></i>
|
| 130 |
+
<span class="tooltip-text absolute -mt-16 bg-gray-800 text-white text-xs px-2 py-1 rounded">Record Audio</span>
|
| 131 |
+
</button>
|
| 132 |
+
</div>
|
| 133 |
+
|
| 134 |
+
<div class="mt-6">
|
| 135 |
+
<div class="flex justify-between text-sm text-gray-600 mb-1">
|
| 136 |
+
<span>00:12</span>
|
| 137 |
+
<span>05:00</span>
|
| 138 |
+
</div>
|
| 139 |
+
<div class="timeline-track rounded-full">
|
| 140 |
+
<div class="timeline-progress rounded-full"></div>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
|
| 145 |
+
<!-- Editing Tools -->
|
| 146 |
+
<div class="bg-white rounded-xl shadow-md p-4">
|
| 147 |
+
<div class="flex overflow-x-auto pb-2 space-x-4">
|
| 148 |
+
<button class="flex flex-col items-center px-3 py-2 rounded-lg hover:bg-gray-100 transition min-w-fit">
|
| 149 |
+
<i class="fas fa-cut text-indigo-600 mb-1"></i>
|
| 150 |
+
<span class="text-xs">Trim</span>
|
| 151 |
+
</button>
|
| 152 |
+
<button class="flex flex-col items-center px-3 py-2 rounded-lg hover:bg-gray-100 transition min-w-fit">
|
| 153 |
+
<i class="fas fa-layer-group text-indigo-600 mb-1"></i>
|
| 154 |
+
<span class="text-xs">Layers</span>
|
| 155 |
+
</button>
|
| 156 |
+
<button class="flex flex-col items-center px-3 py-2 rounded-lg hover:bg-gray-100 transition min-w-fit">
|
| 157 |
+
<i class="fas fa-text-height text-indigo-600 mb-1"></i>
|
| 158 |
+
<span class="text-xs">Text</span>
|
| 159 |
+
</button>
|
| 160 |
+
<button class="flex flex-col items-center px-3 py-2 rounded-lg hover:bg-gray-100 transition min-w-fit">
|
| 161 |
+
<i class="fas fa-music text-indigo-600 mb-1"></i>
|
| 162 |
+
<span class="text-xs">Audio</span>
|
| 163 |
+
</button>
|
| 164 |
+
<button class="flex flex-col items-center px-3 py-2 rounded-lg hover:bg-gray-100 transition min-w-fit">
|
| 165 |
+
<i class="fas fa-sliders-h text-indigo-600 mb-1"></i>
|
| 166 |
+
<span class="text-xs">Effects</span>
|
| 167 |
+
</button>
|
| 168 |
+
<button class="flex flex-col items-center px-3 py-2 rounded-lg hover:bg-gray-100 transition min-w-fit">
|
| 169 |
+
<i class="fas fa-transition text-indigo-600 mb-1"></i>
|
| 170 |
+
<span class="text-xs">Transitions</span>
|
| 171 |
+
</button>
|
| 172 |
+
<button class="flex flex-col items-center px-3 py-2 rounded-lg hover:bg-gray-100 transition min-w-fit">
|
| 173 |
+
<i class="fas fa-robot text-indigo-600 mb-1"></i>
|
| 174 |
+
<span class="text-xs">AI Enhance</span>
|
| 175 |
+
</button>
|
| 176 |
+
</div>
|
| 177 |
+
</div>
|
| 178 |
+
</section>
|
| 179 |
+
|
| 180 |
+
<!-- AI Assistant Section -->
|
| 181 |
+
<section class="lg:w-96 flex flex-col">
|
| 182 |
+
<div class="flex justify-between items-center mb-4">
|
| 183 |
+
<h2 class="text-xl font-semibold text-gray-800">AI Video Assistant</h2>
|
| 184 |
+
<button class="text-indigo-600 hover:text-indigo-800 transition">
|
| 185 |
+
<i class="fas fa-ellipsis-h"></i>
|
| 186 |
+
</button>
|
| 187 |
+
</div>
|
| 188 |
+
|
| 189 |
+
<div class="bg-white rounded-xl shadow-md flex-1 flex flex-col">
|
| 190 |
+
<!-- Chat Messages -->
|
| 191 |
+
<div class="flex-1 p-4 overflow-y-auto space-y-4" id="chat-messages">
|
| 192 |
+
<div class="chat-message-ai p-3 max-w-xs">
|
| 193 |
+
<div class="flex items-center mb-1">
|
| 194 |
+
<div class="w-6 h-6 rounded-full bg-purple-200 flex items-center justify-center mr-2">
|
| 195 |
+
<i class="fas fa-robot text-purple-600 text-xs"></i>
|
| 196 |
+
</div>
|
| 197 |
+
<span class="font-medium text-sm">VidGenAI</span>
|
| 198 |
+
</div>
|
| 199 |
+
<p class="text-sm">Hi there! I'm your AI video assistant. How can I help you with your video project today?</p>
|
| 200 |
+
</div>
|
| 201 |
+
|
| 202 |
+
<div class="flex justify-end">
|
| 203 |
+
<div class="chat-message-user p-3 max-w-xs">
|
| 204 |
+
<p class="text-sm">Can you suggest a good intro for my tech tutorial?</p>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
|
| 208 |
+
<div class="chat-message-ai p-3 max-w-xs">
|
| 209 |
+
<div class="flex items-center mb-1">
|
| 210 |
+
<div class="w-6 h-6 rounded-full bg-purple-200 flex items-center justify-center mr-2">
|
| 211 |
+
<i class="fas fa-robot text-purple-600 text-xs"></i>
|
| 212 |
+
</div>
|
| 213 |
+
<span class="font-medium text-sm">VidGenAI</span>
|
| 214 |
+
</div>
|
| 215 |
+
<p class="text-sm mb-2">Here's a suggested intro script:</p>
|
| 216 |
+
<p class="text-sm italic mb-2">"Welcome to today's tutorial where we'll explore the latest in AI technology. Whether you're a beginner or an expert, by the end of this video you'll have mastered..."</p>
|
| 217 |
+
<p class="text-sm">Would you like me to generate a voiceover for this?</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
|
| 221 |
+
<!-- Chat Input -->
|
| 222 |
+
<div class="p-4 border-t">
|
| 223 |
+
<div class="flex items-center space-x-2">
|
| 224 |
+
<button class="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center hover:bg-gray-200 transition">
|
| 225 |
+
<i class="fas fa-plus text-gray-600"></i>
|
| 226 |
+
</button>
|
| 227 |
+
<div class="flex-1 relative">
|
| 228 |
+
<input type="text" placeholder="Ask the AI assistant..."
|
| 229 |
+
class="w-full px-4 py-2 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 230 |
+
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 text-indigo-600 hover:text-indigo-800">
|
| 231 |
+
<i class="fas fa-paper-plane"></i>
|
| 232 |
+
</button>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
<div class="mt-2 text-xs text-gray-500 text-center">
|
| 236 |
+
VidGenAI can help with scripts, edits, and creative ideas
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
| 239 |
+
</div>
|
| 240 |
+
|
| 241 |
+
<!-- AI Quick Actions -->
|
| 242 |
+
<div class="mt-4 bg-white rounded-xl shadow-md p-4">
|
| 243 |
+
<h3 class="font-medium text-gray-700 mb-3">Quick AI Actions</h3>
|
| 244 |
+
<div class="grid grid-cols-2 gap-2">
|
| 245 |
+
<button class="text-left p-2 rounded-lg hover:bg-gray-100 transition text-sm">
|
| 246 |
+
<i class="fas fa-magic text-indigo-600 mr-2"></i> Auto-edit
|
| 247 |
+
</button>
|
| 248 |
+
<button class="text-left p-2 rounded-lg hover:bg-gray-100 transition text-sm">
|
| 249 |
+
<i class="fas fa-closed-captioning text-indigo-600 mr-2"></i> Generate captions
|
| 250 |
+
</button>
|
| 251 |
+
<button class="text-left p-2 rounded-lg hover:bg-gray-100 transition text-sm">
|
| 252 |
+
<i class="fas fa-music text-indigo-600 mr-2"></i> Add background music
|
| 253 |
+
</button>
|
| 254 |
+
<button class="text-left p-2 rounded-lg hover:bg-gray-100 transition text-sm">
|
| 255 |
+
<i class="fas fa-lightbulb text-indigo-600 mr-2"></i> Creative suggestions
|
| 256 |
+
</button>
|
| 257 |
+
</div>
|
| 258 |
+
</div>
|
| 259 |
+
</section>
|
| 260 |
+
</main>
|
| 261 |
+
|
| 262 |
+
<script>
|
| 263 |
+
// Simulate AI response
|
| 264 |
+
document.querySelector('.fa-paper-plane').addEventListener('click', function() {
|
| 265 |
+
const input = document.querySelector('input[type="text"]');
|
| 266 |
+
if (input.value.trim() === '') return;
|
| 267 |
+
|
| 268 |
+
// Add user message
|
| 269 |
+
const userMessage = document.createElement('div');
|
| 270 |
+
userMessage.className = 'flex justify-end';
|
| 271 |
+
userMessage.innerHTML = `
|
| 272 |
+
<div class="chat-message-user p-3 max-w-xs">
|
| 273 |
+
<p class="text-sm">${input.value}</p>
|
| 274 |
+
</div>
|
| 275 |
+
`;
|
| 276 |
+
document.getElementById('chat-messages').appendChild(userMessage);
|
| 277 |
+
|
| 278 |
+
// Clear input
|
| 279 |
+
const userQuery = input.value;
|
| 280 |
+
input.value = '';
|
| 281 |
+
|
| 282 |
+
// Simulate AI thinking
|
| 283 |
+
setTimeout(() => {
|
| 284 |
+
// Add AI response
|
| 285 |
+
const aiResponse = document.createElement('div');
|
| 286 |
+
aiResponse.className = 'chat-message-ai p-3 max-w-xs';
|
| 287 |
+
aiResponse.innerHTML = `
|
| 288 |
+
<div class="flex items-center mb-1">
|
| 289 |
+
<div class="w-6 h-6 rounded-full bg-purple-200 flex items-center justify-center mr-2">
|
| 290 |
+
<i class="fas fa-robot text-purple-600 text-xs"></i>
|
| 291 |
+
</div>
|
| 292 |
+
<span class="font-medium text-sm">VidGenAI</span>
|
| 293 |
+
</div>
|
| 294 |
+
<p class="text-sm">${getAIResponse(userQuery)}</p>
|
| 295 |
+
`;
|
| 296 |
+
document.getElementById('chat-messages').appendChild(aiResponse);
|
| 297 |
+
|
| 298 |
+
// Scroll to bottom
|
| 299 |
+
document.getElementById('chat-messages').scrollTop = document.getElementById('chat-messages').scrollHeight;
|
| 300 |
+
}, 1000);
|
| 301 |
+
});
|
| 302 |
+
|
| 303 |
+
// Simple AI response logic
|
| 304 |
+
function getAIResponse(query) {
|
| 305 |
+
const responses = [
|
| 306 |
+
"I can help you with that video edit. Would you like me to automatically adjust the lighting and colors?",
|
| 307 |
+
"For that type of content, I recommend using our 'Tech Explainer' template. Would you like me to apply it?",
|
| 308 |
+
"Here's a suggested script for your introduction: 'In today's fast-paced digital world, understanding this technology is crucial...'",
|
| 309 |
+
"I've analyzed your footage and suggest trimming the first 5 seconds for better pacing.",
|
| 310 |
+
"Your video could benefit from some background music. I've selected 3 options that would match well.",
|
| 311 |
+
"Based on your content, these are the optimal export settings: 1080p at 30fps with H.264 compression."
|
| 312 |
+
];
|
| 313 |
+
|
| 314 |
+
return responses[Math.floor(Math.random() * responses.length)];
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
// Simulate recording progress
|
| 318 |
+
setInterval(() => {
|
| 319 |
+
const progress = document.querySelector('.timeline-progress');
|
| 320 |
+
const currentWidth = parseFloat(progress.style.width || '0');
|
| 321 |
+
if (currentWidth < 100) {
|
| 322 |
+
progress.style.width = (currentWidth + 0.5) + '%';
|
| 323 |
+
}
|
| 324 |
+
}, 100);
|
| 325 |
+
</script>
|
| 326 |
+
<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=karhar92/video" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 327 |
+
</html>
|