Can I use deep sight to take a youtube video and recreate it using a different avatar and a different brand name
477329e verified Download components/deepsight.js from VideoSuccess123/pixelpulse-playground: direct link, hf CLI and curl.
- Browser
- Download file 2.14 kB
-
https://huggingface.co/spaces/VideoSuccess123/pixelpulse-playground/resolve/main/components/deepsight.js
- Command line
-
hf download hf://spaces/VideoSuccess123/pixelpulse-playground/components/deepsight.js
-
curl -L -o deepsight.js https://huggingface.co/spaces/VideoSuccess123/pixelpulse-playground/resolve/main/components/deepsight.js
2.14 kB
| class CustomDeepsight extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .deepsight-container { | |
| max-width: 800px; | |
| margin: 2rem auto; | |
| padding: 2rem; | |
| background: white; | |
| border-radius: 12px; | |
| box-shadow: 0 4px 6px rgba(0,0,0,0.1); | |
| } | |
| .deepsight-header { | |
| display: flex; | |
| align-items: center; | |
| margin-bottom: 1.5rem; | |
| } | |
| .deepsight-avatar { | |
| width: 80px; | |
| height: 80px; | |
| border-radius: 50%; | |
| object-fit: cover; | |
| margin-right: 1rem; | |
| } | |
| .deepsight-video { | |
| width: 100%; | |
| border-radius: 8px; | |
| margin-top: 1rem; | |
| } | |
| .deepsight-controls { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1.5rem; | |
| } | |
| .deepsight-btn { | |
| padding: 0.5rem 1rem; | |
| border-radius: 6px; | |
| border: none; | |
| cursor: pointer; | |
| font-weight: 500; | |
| } | |
| .deepsight-primary { | |
| background: #6366f1; | |
| color: white; | |
| } | |
| .deepsight-secondary { | |
| background: #f3f4f6; | |
| color: #4b5563; | |
| } | |
| </style> | |
| <div class="deepsight-container"> | |
| <div class="deepsight-header"> | |
| <img src="http://static.photos/technology/200x200/42" alt="AI Avatar" class="deepsight-avatar"> | |
| <div> | |
| <h3>PixelPulse AI Assistant</h3> | |
| <p>Powered by DeepSight Technology</p> | |
| </div> | |
| </div> | |
| <div class="aspect-w-16 aspect-h-9"> | |
| <iframe class="deepsight-video" src="https://www.youtube.com/embed/vCJ6U7mQmYw" frameborder="0" allowfullscreen></iframe> | |
| </div> | |
| <div class="deepsight-controls"> | |
| <button class="deepsight-btn deepsight-primary">Generate New Video</button> | |
| <button class="deepsight-btn deepsight-secondary">Customize Avatar</button> | |
| </div> | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-deepsight', CustomDeepsight); |