Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +358 -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: deepsite-html
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: pink
|
| 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,358 @@
|
|
| 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>HF+OF Spout Bridge</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
|
| 9 |
+
<style>
|
| 10 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #1e3a8a 0%, #7e22ce 100%);
|
| 12 |
+
}
|
| 13 |
+
.model-card:hover {
|
| 14 |
+
transform: translateY(-5px);
|
| 15 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 16 |
+
}
|
| 17 |
+
.spout-preview {
|
| 18 |
+
background: repeating-conic-gradient(#111827 0% 25%, #1f2937 0% 50%) 50% / 20px 20px;
|
| 19 |
+
}
|
| 20 |
+
.glow {
|
| 21 |
+
box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
|
| 22 |
+
}
|
| 23 |
+
.slider-thumb::-webkit-slider-thumb {
|
| 24 |
+
-webkit-appearance: none;
|
| 25 |
+
appearance: none;
|
| 26 |
+
width: 20px;
|
| 27 |
+
height: 20px;
|
| 28 |
+
border-radius: 50%;
|
| 29 |
+
background: #3b82f6;
|
| 30 |
+
cursor: pointer;
|
| 31 |
+
}
|
| 32 |
+
</style>
|
| 33 |
+
</head>
|
| 34 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen">
|
| 35 |
+
<div class="gradient-bg w-full py-6 px-4 shadow-xl">
|
| 36 |
+
<div class="container mx-auto flex justify-between items-center">
|
| 37 |
+
<div class="flex items-center space-x-3">
|
| 38 |
+
<i class="fas fa-robot text-3xl text-indigo-300"></i>
|
| 39 |
+
<h1 class="text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-300 to-purple-300">
|
| 40 |
+
HF+OF Spout Bridge
|
| 41 |
+
</h1>
|
| 42 |
+
</div>
|
| 43 |
+
<div class="flex space-x-4">
|
| 44 |
+
<button id="connectBtn" class="px-4 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg flex items-center space-x-2 transition-all">
|
| 45 |
+
<i class="fas fa-plug"></i>
|
| 46 |
+
<span>Connect Spout</span>
|
| 47 |
+
</button>
|
| 48 |
+
<button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg flex items-center space-x-2 transition-all">
|
| 49 |
+
<i class="fas fa-cog"></i>
|
| 50 |
+
<span>Settings</span>
|
| 51 |
+
</button>
|
| 52 |
+
</div>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
|
| 56 |
+
<div class="container mx-auto px-4 py-8 grid grid-cols-1 lg:grid-cols-3 gap-8">
|
| 57 |
+
<!-- Model Selection Panel -->
|
| 58 |
+
<div class="bg-gray-800 rounded-xl p-6 shadow-lg col-span-1">
|
| 59 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 60 |
+
<i class="fas fa-brain mr-2 text-indigo-400"></i>
|
| 61 |
+
Hugging Face Models
|
| 62 |
+
</h2>
|
| 63 |
+
|
| 64 |
+
<div class="mb-4">
|
| 65 |
+
<label class="block text-sm font-medium mb-2">Search Models</label>
|
| 66 |
+
<div class="relative">
|
| 67 |
+
<input type="text" placeholder="Stable Diffusion, GPT, etc..."
|
| 68 |
+
class="w-full bg-gray-700 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
| 69 |
+
<i class="fas fa-search absolute right-3 top-2.5 text-gray-400"></i>
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<div class="space-y-3 max-h-96 overflow-y-auto pr-2">
|
| 74 |
+
<div class="model-card bg-gray-700 p-4 rounded-lg cursor-pointer transition-all hover:bg-gray-600 border-l-4 border-indigo-500">
|
| 75 |
+
<div class="flex justify-between items-start">
|
| 76 |
+
<h3 class="font-medium">Stable Diffusion v2.1</h3>
|
| 77 |
+
<span class="text-xs bg-indigo-900 text-indigo-200 px-2 py-1 rounded">Text-to-Image</span>
|
| 78 |
+
</div>
|
| 79 |
+
<p class="text-sm text-gray-400 mt-1">Generates high-quality images from text prompts</p>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<div class="model-card bg-gray-700 p-4 rounded-lg cursor-pointer transition-all hover:bg-gray-600">
|
| 83 |
+
<div class="flex justify-between items-start">
|
| 84 |
+
<h3 class="font-medium">ControlNet</h3>
|
| 85 |
+
<span class="text-xs bg-purple-900 text-purple-200 px-2 py-1 rounded">Image-to-Image</span>
|
| 86 |
+
</div>
|
| 87 |
+
<p class="text-sm text-gray-400 mt-1">Conditional image generation with spatial constraints</p>
|
| 88 |
+
</div>
|
| 89 |
+
|
| 90 |
+
<div class="model-card bg-gray-700 p-4 rounded-lg cursor-pointer transition-all hover:bg-gray-600">
|
| 91 |
+
<div class="flex justify-between items-start">
|
| 92 |
+
<h3 class="font-medium">CLIP Interrogator</h3>
|
| 93 |
+
<span class="text-xs bg-green-900 text-green-200 px-2 py-1 rounded">Image Analysis</span>
|
| 94 |
+
</div>
|
| 95 |
+
<p class="text-sm text-gray-400 mt-1">Generates text descriptions from images</p>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<div class="model-card bg-gray-700 p-4 rounded-lg cursor-pointer transition-all hover:bg-gray-600">
|
| 99 |
+
<div class="flex justify-between items-start">
|
| 100 |
+
<h3 class="font-medium">ESRGAN</h3>
|
| 101 |
+
<span class="text-xs bg-yellow-900 text-yellow-200 px-2 py-1 rounded">Super Resolution</span>
|
| 102 |
+
</div>
|
| 103 |
+
<p class="text-sm text-gray-400 mt-1">Upscales and enhances low-resolution images</p>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<div class="model-card bg-gray-700 p-4 rounded-lg cursor-pointer transition-all hover:bg-gray-600">
|
| 107 |
+
<div class="flex justify-between items-start">
|
| 108 |
+
<h3 class="font-medium">MiDaS</h3>
|
| 109 |
+
<span class="text-xs bg-red-900 text-red-200 px-2 py-1 rounded">Depth Estimation</span>
|
| 110 |
+
</div>
|
| 111 |
+
<p class="text-sm text-gray-400 mt-1">Estimates depth from single images</p>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<button class="w-full mt-4 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg flex items-center justify-center space-x-2 transition-all">
|
| 116 |
+
<i class="fas fa-plus"></i>
|
| 117 |
+
<span>Load Custom Model</span>
|
| 118 |
+
</button>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
<!-- Parameters Panel -->
|
| 122 |
+
<div class="bg-gray-800 rounded-xl p-6 shadow-lg col-span-1">
|
| 123 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center">
|
| 124 |
+
<i class="fas fa-sliders-h mr-2 text-purple-400"></i>
|
| 125 |
+
Model Parameters
|
| 126 |
+
</h2>
|
| 127 |
+
|
| 128 |
+
<div class="space-y-6">
|
| 129 |
+
<div>
|
| 130 |
+
<label class="block text-sm font-medium mb-2">Prompt</label>
|
| 131 |
+
<textarea class="w-full bg-gray-700 rounded-lg px-4 py-2 h-24 focus:outline-none focus:ring-2 focus:ring-purple-500"
|
| 132 |
+
placeholder="Describe what you want to generate..."></textarea>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<div>
|
| 136 |
+
<label class="block text-sm font-medium mb-2">Negative Prompt</label>
|
| 137 |
+
<textarea class="w-full bg-gray-700 rounded-lg px-4 py-2 h-16 focus:outline-none focus:ring-2 focus:ring-purple-500"
|
| 138 |
+
placeholder="What to exclude from generation..."></textarea>
|
| 139 |
+
</div>
|
| 140 |
+
|
| 141 |
+
<div>
|
| 142 |
+
<label class="block text-sm font-medium mb-2">Steps <span class="text-gray-400 ml-1" id="stepsValue">20</span></label>
|
| 143 |
+
<input type="range" min="1" max="50" value="20"
|
| 144 |
+
class="slider-thumb w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer">
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<div>
|
| 148 |
+
<label class="block text-sm font-medium mb-2">CFG Scale <span class="text-gray-400 ml-1" id="cfgValue">7.5</span></label>
|
| 149 |
+
<input type="range" min="1" max="20" value="7.5" step="0.5"
|
| 150 |
+
class="slider-thumb w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer">
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<div class="grid grid-cols-2 gap-4">
|
| 154 |
+
<div>
|
| 155 |
+
<label class="block text-sm font-medium mb-2">Width</label>
|
| 156 |
+
<select class="w-full bg-gray-700 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500">
|
| 157 |
+
<option>512</option>
|
| 158 |
+
<option>768</option>
|
| 159 |
+
<option selected>1024</option>
|
| 160 |
+
</select>
|
| 161 |
+
</div>
|
| 162 |
+
<div>
|
| 163 |
+
<label class="block text-sm font-medium mb-2">Height</label>
|
| 164 |
+
<select class="w-full bg-gray-700 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500">
|
| 165 |
+
<option>512</option>
|
| 166 |
+
<option selected>768</option>
|
| 167 |
+
<option>1024</option>
|
| 168 |
+
</select>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
|
| 172 |
+
<div>
|
| 173 |
+
<label class="block text-sm font-medium mb-2">Seed</label>
|
| 174 |
+
<div class="flex space-x-2">
|
| 175 |
+
<input type="number" value="42"
|
| 176 |
+
class="w-full bg-gray-700 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500">
|
| 177 |
+
<button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg">
|
| 178 |
+
<i class="fas fa-dice"></i>
|
| 179 |
+
</button>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
<div class="mt-8 space-y-3">
|
| 185 |
+
<button class="w-full py-3 bg-purple-600 hover:bg-purple-700 rounded-lg font-medium flex items-center justify-center space-x-2 transition-all">
|
| 186 |
+
<i class="fas fa-bolt"></i>
|
| 187 |
+
<span>Generate</span>
|
| 188 |
+
</button>
|
| 189 |
+
<button class="w-full py-2 bg-gray-700 hover:bg-gray-600 rounded-lg flex items-center justify-center space-x-2 transition-all">
|
| 190 |
+
<i class="fas fa-redo"></i>
|
| 191 |
+
<span>Reset Parameters</span>
|
| 192 |
+
</button>
|
| 193 |
+
</div>
|
| 194 |
+
</div>
|
| 195 |
+
|
| 196 |
+
<!-- Preview Panel -->
|
| 197 |
+
<div class="bg-gray-800 rounded-xl p-6 shadow-lg col-span-1 lg:col-span-1">
|
| 198 |
+
<div class="flex justify-between items-center mb-4">
|
| 199 |
+
<h2 class="text-xl font-semibold flex items-center">
|
| 200 |
+
<i class="fas fa-eye mr-2 text-green-400"></i>
|
| 201 |
+
Spout Output
|
| 202 |
+
</h2>
|
| 203 |
+
<div class="flex space-x-2">
|
| 204 |
+
<button class="p-2 bg-gray-700 hover:bg-gray-600 rounded-lg">
|
| 205 |
+
<i class="fas fa-expand"></i>
|
| 206 |
+
</button>
|
| 207 |
+
<button class="p-2 bg-gray-700 hover:bg-gray-600 rounded-lg">
|
| 208 |
+
<i class="fas fa-download"></i>
|
| 209 |
+
</button>
|
| 210 |
+
</div>
|
| 211 |
+
</div>
|
| 212 |
+
|
| 213 |
+
<div class="spout-preview rounded-lg overflow-hidden relative aspect-square w-full flex items-center justify-center">
|
| 214 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
| 215 |
+
<div class="text-center">
|
| 216 |
+
<i class="fas fa-project-diagram text-4xl text-gray-600 mb-2"></i>
|
| 217 |
+
<p class="text-gray-500">Spout output will appear here</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
|
| 221 |
+
<div id="spoutStatus" class="absolute bottom-4 left-4 bg-black bg-opacity-70 px-3 py-1 rounded-full text-sm flex items-center">
|
| 222 |
+
<div class="w-2 h-2 rounded-full bg-red-500 mr-2"></div>
|
| 223 |
+
<span>Disconnected</span>
|
| 224 |
+
</div>
|
| 225 |
+
</div>
|
| 226 |
+
|
| 227 |
+
<div class="mt-6 bg-gray-700 rounded-lg p-4">
|
| 228 |
+
<h3 class="font-medium mb-2 flex items-center">
|
| 229 |
+
<i class="fas fa-info-circle mr-2 text-blue-400"></i>
|
| 230 |
+
Spout Configuration
|
| 231 |
+
</h3>
|
| 232 |
+
<div class="space-y-3">
|
| 233 |
+
<div>
|
| 234 |
+
<label class="block text-xs font-medium mb-1">Sender Name</label>
|
| 235 |
+
<input type="text" value="HF_OF_Bridge"
|
| 236 |
+
class="w-full bg-gray-800 rounded-lg px-3 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500">
|
| 237 |
+
</div>
|
| 238 |
+
<div>
|
| 239 |
+
<label class="block text-xs font-medium mb-1">Resolution</label>
|
| 240 |
+
<div class="grid grid-cols-2 gap-2">
|
| 241 |
+
<input type="number" value="1024"
|
| 242 |
+
class="w-full bg-gray-800 rounded-lg px-3 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500">
|
| 243 |
+
<input type="number" value="768"
|
| 244 |
+
class="w-full bg-gray-800 rounded-lg px-3 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500">
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
<div>
|
| 248 |
+
<label class="block text-xs font-medium mb-1">Framerate</label>
|
| 249 |
+
<select class="w-full bg-gray-800 rounded-lg px-3 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500">
|
| 250 |
+
<option>30</option>
|
| 251 |
+
<option selected>60</option>
|
| 252 |
+
<option>120</option>
|
| 253 |
+
</select>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
</div>
|
| 259 |
+
|
| 260 |
+
<!-- Status Bar -->
|
| 261 |
+
<div class="bg-gray-800 border-t border-gray-700 py-2 px-4 fixed bottom-0 w-full">
|
| 262 |
+
<div class="container mx-auto flex justify-between items-center text-sm">
|
| 263 |
+
<div class="flex space-x-4">
|
| 264 |
+
<div class="flex items-center">
|
| 265 |
+
<i class="fas fa-microchip text-blue-400 mr-1"></i>
|
| 266 |
+
<span>GPU: NVIDIA RTX 3090</span>
|
| 267 |
+
</div>
|
| 268 |
+
<div class="flex items-center">
|
| 269 |
+
<i class="fas fa-memory text-green-400 mr-1"></i>
|
| 270 |
+
<span>VRAM: 12.4/24GB</span>
|
| 271 |
+
</div>
|
| 272 |
+
</div>
|
| 273 |
+
<div class="flex space-x-4">
|
| 274 |
+
<div class="flex items-center">
|
| 275 |
+
<i class="fas fa-exchange-alt text-purple-400 mr-1"></i>
|
| 276 |
+
<span>Spout: Not Connected</span>
|
| 277 |
+
</div>
|
| 278 |
+
<div class="flex items-center">
|
| 279 |
+
<i class="fas fa-circle text-red-500 mr-1"></i>
|
| 280 |
+
<span>API: Disconnected</span>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
</div>
|
| 285 |
+
|
| 286 |
+
<script>
|
| 287 |
+
// Simple interactivity for the UI
|
| 288 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 289 |
+
// Model selection
|
| 290 |
+
const modelCards = document.querySelectorAll('.model-card');
|
| 291 |
+
modelCards.forEach(card => {
|
| 292 |
+
card.addEventListener('click', function() {
|
| 293 |
+
modelCards.forEach(c => c.classList.remove('border-indigo-500', 'glow'));
|
| 294 |
+
this.classList.add('border-indigo-500', 'glow');
|
| 295 |
+
});
|
| 296 |
+
});
|
| 297 |
+
|
| 298 |
+
// Slider value displays
|
| 299 |
+
document.querySelectorAll('input[type="range"]').forEach(slider => {
|
| 300 |
+
const valueId = slider.id.replace('Slider', 'Value') ||
|
| 301 |
+
(slider.previousElementSibling?.querySelector('span')?.id);
|
| 302 |
+
if (valueId) {
|
| 303 |
+
slider.addEventListener('input', function() {
|
| 304 |
+
document.getElementById(valueId).textContent = this.value;
|
| 305 |
+
});
|
| 306 |
+
}
|
| 307 |
+
});
|
| 308 |
+
|
| 309 |
+
// Connect button
|
| 310 |
+
const connectBtn = document.getElementById('connectBtn');
|
| 311 |
+
const spoutStatus = document.getElementById('spoutStatus');
|
| 312 |
+
connectBtn.addEventListener('click', function() {
|
| 313 |
+
// Simulate connection
|
| 314 |
+
this.innerHTML = '<i class="fas fa-spinner fa-spin"></i><span>Connecting...</span>';
|
| 315 |
+
setTimeout(() => {
|
| 316 |
+
this.innerHTML = '<i class="fas fa-link"></i><span>Connected</span>';
|
| 317 |
+
this.classList.remove('bg-indigo-600');
|
| 318 |
+
this.classList.add('bg-green-600');
|
| 319 |
+
|
| 320 |
+
spoutStatus.innerHTML = '<div class="w-2 h-2 rounded-full bg-green-500 mr-2"></div><span>Connected: HF_OF_Bridge</span>';
|
| 321 |
+
|
| 322 |
+
// Update status bar
|
| 323 |
+
document.querySelector('.fa-exchange-alt').classList.remove('text-purple-400');
|
| 324 |
+
document.querySelector('.fa-exchange-alt').classList.add('text-green-400');
|
| 325 |
+
document.querySelector('.fa-circle').classList.remove('text-red-500');
|
| 326 |
+
document.querySelector('.fa-circle').classList.add('text-green-500');
|
| 327 |
+
document.querySelectorAll('.status-bar div')[3].querySelector('span').textContent = 'Spout: Connected';
|
| 328 |
+
document.querySelectorAll('.status-bar div')[4].querySelector('span').textContent = 'API: Connected';
|
| 329 |
+
}, 1500);
|
| 330 |
+
});
|
| 331 |
+
|
| 332 |
+
// Generate button effect
|
| 333 |
+
document.querySelector('button:has(.fa-bolt)').addEventListener('click', function() {
|
| 334 |
+
const preview = document.querySelector('.spout-preview');
|
| 335 |
+
preview.innerHTML = `
|
| 336 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
| 337 |
+
<div class="text-center">
|
| 338 |
+
<i class="fas fa-spinner fa-spin text-4xl text-indigo-400 mb-2"></i>
|
| 339 |
+
<p class="text-gray-300">Generating and streaming via Spout...</p>
|
| 340 |
+
</div>
|
| 341 |
+
</div>
|
| 342 |
+
`;
|
| 343 |
+
|
| 344 |
+
// Simulate generation
|
| 345 |
+
setTimeout(() => {
|
| 346 |
+
preview.innerHTML = `
|
| 347 |
+
<div class="absolute inset-0 bg-cover bg-center" style="background-image: url('https://source.unsplash.com/random/1024x768/?abstract,digital')"></div>
|
| 348 |
+
<div id="spoutStatus" class="absolute bottom-4 left-4 bg-black bg-opacity-70 px-3 py-1 rounded-full text-sm flex items-center">
|
| 349 |
+
<div class="w-2 h-2 rounded-full bg-green-500 mr-2"></div>
|
| 350 |
+
<span>Streaming: 60 FPS</span>
|
| 351 |
+
</div>
|
| 352 |
+
`;
|
| 353 |
+
}, 3000);
|
| 354 |
+
});
|
| 355 |
+
});
|
| 356 |
+
</script>
|
| 357 |
+
<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=FTFSS/deepsite-html" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 358 |
+
</html>
|