Instructions to use Emuixom/Myself_Emi_V with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Emuixom/Myself_Emi_V with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Emuixom/Myself_Emi_V") prompt = "The image is a black and white portrait of a EMILIANO person with dark hair. The person is wearing a long-sleeved black hoodie with a graphic design on the front. The design appears to be a skull with sharp teeth and a chain around its neck. The hoodie is covering the person's mask face hide, with their left hand resting on their chin. The background is a plain white wall. The overall mood of the image is somber and contemplative." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Reproductor de Música</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| text-align: center; | |
| } | |
| #player { | |
| width: 100%; | |
| max-width: 600px; | |
| height: 350px; | |
| margin: 20px auto; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Reproductor de Música desde YouTube</h1> | |
| <input type="text" id="youtube-url" placeholder="Ingresa la URL de YouTube" style="width: 80%; padding: 10px;"> | |
| <button onclick="loadVideo()">Cargar Video</button> | |
| <div id="player"></div> | |
| <script> | |
| // Cargar el iframe de YouTube de manera dinámica | |
| function onYouTubeIframeAPIReady() { | |
| window.player = new YT.Player('player', { | |
| height: '350', | |
| width: '600', | |
| videoId: '', // Inicialmente vacío | |
| events: { | |
| 'onReady': onPlayerReady, | |
| 'onStateChange': onPlayerStateChange | |
| } | |
| }); | |
| } | |
| // Cuando el reproductor está listo | |
| function onPlayerReady(event) { | |
| console.log("Reproductor listo."); | |
| } | |
| // Detectar el estado del video (por ejemplo, si terminó) | |
| function onPlayerStateChange(event) { | |
| if (event.data === YT.PlayerState.ENDED) { | |
| console.log("El video terminó."); | |
| } | |
| } | |
| // Cargar un nuevo video usando la URL de YouTube | |
| function loadVideo() { | |
| var url = document.getElementById('youtube-url').value; | |
| var videoId = extractVideoId(url); | |
| if (videoId) { | |
| player.loadVideoById(videoId); | |
| } else { | |
| alert('URL de YouTube no válida'); | |
| } | |
| } | |
| // Extraer el video ID de una URL de YouTube | |
| function extractVideoId(url) { | |
| var videoId = ''; | |
| var regex = /(?:https?:\/\/(?:www\.)?youtube\.com\/(?:[^\/]+\/.*\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/; | |
| var match = url.match(regex); | |
| if (match) { | |
| videoId = match[1]; | |
| } | |
| return videoId; | |
| } | |
| // Cargar la API de YouTube | |
| var tag = document.createElement('script'); | |
| tag.src = "https://www.youtube.com/iframe_api"; | |
| var firstScriptTag = document.getElementsByTagName('script')[0]; | |
| firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
| </script> | |
| </body> | |
| </html> |