Episode 22
Daviddcb08910dc34
diff --git a/README.md b/README.mdindex f94baa0..51000b9 100644--- a/README.md+++ b/README.md@@ -28,6 +28,8 @@ In this repo, you can find the n8n templates we created for the episodes of [AI- [Episode 18: Scary story TikTok videos workflow](episode_18)- [Episode 19: Run FLUX.1 Kontext [dev] with modal.com](episode_19)- [Episode 20: Use Wan 2.2, ComfyUI and n8n to generate videos for free](episode_20)+- [Episode 21: 10 EASY faceless niches that pay well - monetize in a MONTH (2025)](episode_21)+- [Episode 22: Sleep long-form videos with GPT-5, ElevenMusic, Imagen4, Seendance and n8n](episode_22)## serversdiff --git a/episode_20/modal_wan_comfyui_5b.py b/episode_20/modal_wan_comfyui_5b.pyindex f3c6746..3b00376 100644--- a/episode_20/modal_wan_comfyui_5b.py+++ b/episode_20/modal_wan_comfyui_5b.py@@ -2,12 +2,12 @@ import subprocessimport modalimage = ( # build up a Modal Image to run ComfyUI, step by step- modal.Image.debian_slim(python_version="3.11") # start from basic Linux with Python+ modal.Image.debian_slim(python_version="3.12") # start from basic Linux with Python.apt_install("git") # install git to clone ComfyUI- .pip_install("fastapi[standard]==0.115.4") # install web dependencies- .pip_install("comfy-cli==1.4.1") # install comfy-cli+ .pip_install("comfy-cli==1.4.1", force_build=True) # install comfy-cli.run_commands( # use comfy-cli to install ComfyUI and its dependencies- "comfy --skip-prompt install --fast-deps --nvidia --version 0.3.47"+ "comfy --skip-prompt install --fast-deps --nvidia --version 0.3.47",+ force_build=True,))@@ -17,6 +17,7 @@ image = image.run_commands( # download a custom node"git clone https://github.com/ChenDarYen/ComfyUI-NAG.git /root/comfy/ComfyUI/custom_nodes/ComfyUI-NAG","git clone https://github.com/kijai/ComfyUI-KJNodes.git /root/comfy/ComfyUI/custom_nodes/ComfyUI-KJNodes","git clone https://github.com/cubiq/ComfyUI_essentials.git /root/comfy/ComfyUI/custom_nodes/ComfyUI_essentials",+ force_build=True,)diff --git a/episode_20/test.py b/episode_20/test.pynew file mode 100644index 0000000..8d68141--- /dev/null+++ b/episode_20/test.py@@ -0,0 +1,96 @@+import subprocess+import modal++image = ( # build up a Modal Image to run ComfyUI, step by step+ modal.Image.debian_slim(python_version="3.12") # start from basic Linux with Python+ .apt_install("git") # install git to clone ComfyUI+ .pip_install("fastapi[standard]==0.115.4") # install web dependencies+ .pip_install("comfy-cli==1.4.1") # install comfy-cli+ .run_commands( # use comfy-cli to install ComfyUI and its dependencies+ "comfy --skip-prompt install --fast-deps --nvidia --version 0.3.47"+ )+)++## Downloading custom nodes+image = image.run_commands( # download a custom node+ "comfy node install --fast-deps [email protected]",+ "git clone https://github.com/ChenDarYen/ComfyUI-NAG.git /root/comfy/ComfyUI/custom_nodes/ComfyUI-NAG",+ "git clone https://github.com/kijai/ComfyUI-KJNodes.git /root/comfy/ComfyUI/custom_nodes/ComfyUI-KJNodes",+ "git clone https://github.com/cubiq/ComfyUI_essentials.git /root/comfy/ComfyUI/custom_nodes/ComfyUI_essentials",+)+++def hf_download():+ from huggingface_hub import hf_hub_download++ wan_model = hf_hub_download(+ repo_id="Comfy-Org/Wan_2.2_ComfyUI_Repackaged",+ filename="split_files/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors",+ cache_dir="/cache",+ )++ subprocess.run(+ f"ln -s {wan_model} /root/comfy/ComfyUI/models/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors",+ shell=True,+ check=True,+ )++ vae_model = hf_hub_download(+ repo_id="Comfy-Org/Wan_2.2_ComfyUI_Repackaged",+ filename="split_files/vae/wan2.2_vae.safetensors",+ cache_dir="/cache",+ )++ subprocess.run(+ f"ln -s {vae_model} /root/comfy/ComfyUI/models/vae/wan2.2_vae.safetensors",+ shell=True,+ check=True,+ )++ # https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors+ text_encoder_model = hf_hub_download(+ repo_id="Comfy-Org/Wan_2.1_ComfyUI_repackaged",+ filename="split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ cache_dir="/cache",+ )++ subprocess.run(+ f"ln -s {text_encoder_model} /root/comfy/ComfyUI/models/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ shell=True,+ check=True,+ )+++vol = modal.Volume.from_name("hf-hub-cache", create_if_missing=True)++image = (+ # install huggingface_hub with hf_transfer support to speed up downloads+ image.pip_install("huggingface_hub[hf_transfer]>=0.34.0,<1.0")+ .env({"HF_HUB_ENABLE_HF_TRANSFER": "1"})+ .run_function(+ hf_download,+ # persist the HF cache to a Modal Volume so future runs don't re-download models+ volumes={"/cache": vol},+ )+)+++# ## Running ComfyUI interactively++# Spin up an interactive ComfyUI server by wrapping the `comfy launch` command in a Modal Function+# and serving it as a [web server](https://modal.com/docs/guide/webhooks#non-asgi-web-servers).++app = modal.App(name="example-comfyui", image=image)+++ max_containers=1, # limit interactive session to 1 container+ gpu="L40S", # good starter GPU for inference+ volumes={"/cache": vol}, # mounts our cached models+)+ max_inputs=10+) # required for UI startup process which runs several API calls concurrently[email protected]_server(8000, startup_timeout=60)+def ui():+ subprocess.Popen("comfy launch -- --listen 0.0.0.0 --port 8000", shell=True)diff --git a/episode_21/README.md b/episode_21/README.mdnew file mode 100644index 0000000..fb3ad00--- /dev/null+++ b/episode_21/README.md@@ -0,0 +1,13 @@+# Episode 21: 10 EASY faceless niches that pay well - monetize in a MONTH (2025)++## [π Join our Skool community for support, premium content and more!](https://www.skool.com/ai-agents-az/about?gw10)++### Be part of a growing community and help us create more content like this++## Assets++- [Join n8n](https://n8n.partnerlinks.io/fenoo5ekqs1g)++## Watch the video++[](https://www.youtube.com/watch?v=piPIwDCeYWI)diff --git a/episode_22/README.md b/episode_22/README.mdnew file mode 100644index 0000000..8783d75--- /dev/null+++ b/episode_22/README.md@@ -0,0 +1,22 @@+# Episode 22: Sleep long-form videos with GPT-5, ElevenMusic, Imagen4, Seendance and n8n++In this video, we show you how to create viral sleep music videos inspired by trending channels in this faceless niche that have exploded in views and monetized fast.++## [π Join our Skool community for support, premium content and more!](https://www.skool.com/ai-agents-az/about?gw11)++### Get the premium versions of the workflows and the exclusive content - with the hosted server++## Free n8n JSON workflow++- [Workflow: Sleep music long-form video creator](workflow-sleep-music.json)++## Additional resources++- [Join n8n](https://n8n.partnerlinks.io/fenoo5ekqs1g)+- [Fal.ai API keys](https://fal.ai/dashboard/keys)+- [ElevenLabs](https://try.elevenlabs.io/wsiy0rypx5wq)+- [OpenAI API keys](https://platform.openai.com/api-keys)++## Watch the video++[](https://www.youtube.com/watch?v=WHv_m0ctBj4)