Spaces:
Running
Running
Delete index.html
Browse files- index.html +0 -230
index.html
DELETED
|
@@ -1,230 +0,0 @@
|
|
| 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>Veo3-1-Fast - AI Video Generation</title>
|
| 7 |
-
|
| 8 |
-
<!-- Import Gradio Web Component -->
|
| 9 |
-
<script
|
| 10 |
-
type="module"
|
| 11 |
-
src="https://gradio.s3-us-west-2.amazonaws.com/5.49.1/gradio.js"
|
| 12 |
-
></script>
|
| 13 |
-
|
| 14 |
-
<style>
|
| 15 |
-
* {
|
| 16 |
-
margin: 0;
|
| 17 |
-
padding: 0;
|
| 18 |
-
box-sizing: border-box;
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
body {
|
| 22 |
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
| 23 |
-
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 24 |
-
min-height: 100vh;
|
| 25 |
-
display: flex;
|
| 26 |
-
flex-direction: column;
|
| 27 |
-
align-items: center;
|
| 28 |
-
padding: 20px;
|
| 29 |
-
}
|
| 30 |
-
|
| 31 |
-
.container {
|
| 32 |
-
width: 100%;
|
| 33 |
-
max-width: 1200px;
|
| 34 |
-
background: rgba(255, 255, 255, 0.95);
|
| 35 |
-
border-radius: 20px;
|
| 36 |
-
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
| 37 |
-
overflow: hidden;
|
| 38 |
-
animation: fadeIn 0.5s ease-out;
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
@keyframes fadeIn {
|
| 42 |
-
from {
|
| 43 |
-
opacity: 0;
|
| 44 |
-
transform: translateY(20px);
|
| 45 |
-
}
|
| 46 |
-
to {
|
| 47 |
-
opacity: 1;
|
| 48 |
-
transform: translateY(0);
|
| 49 |
-
}
|
| 50 |
-
}
|
| 51 |
-
|
| 52 |
-
.header {
|
| 53 |
-
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 54 |
-
color: white;
|
| 55 |
-
padding: 30px;
|
| 56 |
-
text-align: center;
|
| 57 |
-
}
|
| 58 |
-
|
| 59 |
-
.header h1 {
|
| 60 |
-
font-size: 2.5em;
|
| 61 |
-
margin-bottom: 10px;
|
| 62 |
-
font-weight: 700;
|
| 63 |
-
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
|
| 64 |
-
}
|
| 65 |
-
|
| 66 |
-
.header p {
|
| 67 |
-
font-size: 1.1em;
|
| 68 |
-
opacity: 0.95;
|
| 69 |
-
max-width: 600px;
|
| 70 |
-
margin: 0 auto;
|
| 71 |
-
}
|
| 72 |
-
|
| 73 |
-
.app-wrapper {
|
| 74 |
-
padding: 20px;
|
| 75 |
-
background: white;
|
| 76 |
-
min-height: 600px;
|
| 77 |
-
}
|
| 78 |
-
|
| 79 |
-
.loading-indicator {
|
| 80 |
-
text-align: center;
|
| 81 |
-
padding: 40px;
|
| 82 |
-
color: #666;
|
| 83 |
-
display: none;
|
| 84 |
-
}
|
| 85 |
-
|
| 86 |
-
.loading-indicator.active {
|
| 87 |
-
display: block;
|
| 88 |
-
}
|
| 89 |
-
|
| 90 |
-
.loading-spinner {
|
| 91 |
-
border: 4px solid #f3f3f3;
|
| 92 |
-
border-top: 4px solid #667eea;
|
| 93 |
-
border-radius: 50%;
|
| 94 |
-
width: 40px;
|
| 95 |
-
height: 40px;
|
| 96 |
-
animation: spin 1s linear infinite;
|
| 97 |
-
margin: 0 auto 20px;
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
@keyframes spin {
|
| 101 |
-
0% { transform: rotate(0deg); }
|
| 102 |
-
100% { transform: rotate(360deg); }
|
| 103 |
-
}
|
| 104 |
-
|
| 105 |
-
.footer {
|
| 106 |
-
background: #f7f7f7;
|
| 107 |
-
padding: 20px;
|
| 108 |
-
text-align: center;
|
| 109 |
-
color: #666;
|
| 110 |
-
font-size: 0.9em;
|
| 111 |
-
}
|
| 112 |
-
|
| 113 |
-
.footer a {
|
| 114 |
-
color: #667eea;
|
| 115 |
-
text-decoration: none;
|
| 116 |
-
font-weight: 500;
|
| 117 |
-
}
|
| 118 |
-
|
| 119 |
-
.footer a:hover {
|
| 120 |
-
text-decoration: underline;
|
| 121 |
-
}
|
| 122 |
-
|
| 123 |
-
.status-badge {
|
| 124 |
-
display: inline-block;
|
| 125 |
-
padding: 5px 10px;
|
| 126 |
-
background: #4caf50;
|
| 127 |
-
color: white;
|
| 128 |
-
border-radius: 5px;
|
| 129 |
-
font-size: 0.85em;
|
| 130 |
-
margin-top: 10px;
|
| 131 |
-
opacity: 0;
|
| 132 |
-
transition: opacity 0.3s ease;
|
| 133 |
-
}
|
| 134 |
-
|
| 135 |
-
.status-badge.visible {
|
| 136 |
-
opacity: 1;
|
| 137 |
-
}
|
| 138 |
-
|
| 139 |
-
@media (max-width: 768px) {
|
| 140 |
-
.header h1 {
|
| 141 |
-
font-size: 1.8em;
|
| 142 |
-
}
|
| 143 |
-
|
| 144 |
-
.header p {
|
| 145 |
-
font-size: 1em;
|
| 146 |
-
}
|
| 147 |
-
|
| 148 |
-
.container {
|
| 149 |
-
border-radius: 10px;
|
| 150 |
-
}
|
| 151 |
-
}
|
| 152 |
-
</style>
|
| 153 |
-
</head>
|
| 154 |
-
<body>
|
| 155 |
-
<div class="container">
|
| 156 |
-
<div class="header">
|
| 157 |
-
<h1>🎬 Veo3-1-Fast</h1>
|
| 158 |
-
<p>Generate amazing AI videos with advanced machine learning models. Simply describe what you want to create!</p>
|
| 159 |
-
<div class="status-badge" id="statusBadge">✓ App Loaded Successfully</div>
|
| 160 |
-
</div>
|
| 161 |
-
|
| 162 |
-
<div class="app-wrapper">
|
| 163 |
-
<div class="loading-indicator active" id="loadingIndicator">
|
| 164 |
-
<div class="loading-spinner"></div>
|
| 165 |
-
<p>Loading the AI model...</p>
|
| 166 |
-
</div>
|
| 167 |
-
|
| 168 |
-
<!-- Gradio App Embed -->
|
| 169 |
-
<gradio-app
|
| 170 |
-
src="https://akhaliq-veo3-1-fast.hf.space"
|
| 171 |
-
eager="false"
|
| 172 |
-
initial_height="500px"
|
| 173 |
-
container="true"
|
| 174 |
-
info="true"
|
| 175 |
-
autoscroll="true"
|
| 176 |
-
theme_mode="light"
|
| 177 |
-
></gradio-app>
|
| 178 |
-
</div>
|
| 179 |
-
|
| 180 |
-
<div class="footer">
|
| 181 |
-
<p>Powered by <a href="https://huggingface.co/spaces" target="_blank">Hugging Face Spaces</a> and <a href="https://gradio.app" target="_blank">Gradio</a></p>
|
| 182 |
-
<p>View original space: <a href="https://huggingface.co/spaces/akhaliq/veo3-1-fast" target="_blank">akhaliq/veo3-1-fast</a></p>
|
| 183 |
-
</div>
|
| 184 |
-
</div>
|
| 185 |
-
|
| 186 |
-
<script>
|
| 187 |
-
// Handle the render event when Gradio app finishes loading
|
| 188 |
-
function handleLoadComplete() {
|
| 189 |
-
console.log("Gradio app has finished rendering");
|
| 190 |
-
|
| 191 |
-
// Hide loading indicator
|
| 192 |
-
const loadingIndicator = document.getElementById('loadingIndicator');
|
| 193 |
-
loadingIndicator.classList.remove('active');
|
| 194 |
-
|
| 195 |
-
// Show success badge
|
| 196 |
-
const statusBadge = document.getElementById('statusBadge');
|
| 197 |
-
statusBadge.classList.add('visible');
|
| 198 |
-
|
| 199 |
-
// Hide the badge after 3 seconds
|
| 200 |
-
setTimeout(() => {
|
| 201 |
-
statusBadge.classList.remove('visible');
|
| 202 |
-
}, 3000);
|
| 203 |
-
}
|
| 204 |
-
|
| 205 |
-
// Add event listener to the Gradio app
|
| 206 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 207 |
-
const gradioApp = document.querySelector('gradio-app');
|
| 208 |
-
if (gradioApp) {
|
| 209 |
-
gradioApp.addEventListener('render', handleLoadComplete);
|
| 210 |
-
|
| 211 |
-
// Log any errors
|
| 212 |
-
gradioApp.addEventListener('error', function(e) {
|
| 213 |
-
console.error('Gradio app error:', e);
|
| 214 |
-
const loadingIndicator = document.getElementById('loadingIndicator');
|
| 215 |
-
loadingIndicator.innerHTML = '<p style="color: #f44336;">⚠️ Error loading the app. Please refresh the page.</p>';
|
| 216 |
-
});
|
| 217 |
-
}
|
| 218 |
-
});
|
| 219 |
-
|
| 220 |
-
// Optional: Add page visibility handling
|
| 221 |
-
document.addEventListener('visibilitychange', function() {
|
| 222 |
-
if (document.visibilityState === 'visible') {
|
| 223 |
-
console.log('Page is now visible');
|
| 224 |
-
} else {
|
| 225 |
-
console.log('Page is now hidden');
|
| 226 |
-
}
|
| 227 |
-
});
|
| 228 |
-
</script>
|
| 229 |
-
</body>
|
| 230 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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