環境隔離區 (Containerized Sandbox)
🟢 RunPod GPU Connected
Python 3 (ipykernel) 🟢
In [1]:
import torch
import subprocess
print(f"GPU Available: {torch.cuda.get_device_name(0)}")
# 啟動掛載在 Volume 內的 ComfyUI,準備接收 Tiptap 傳來的圖文 Payload
subprocess.Popen(["python", "/workspace/ComfyUI/main.py", "--listen", "0.0.0.0"])
print("ComfyUI API Server Started at Port 8188.")
GPU Available: NVIDIA GeForce RTX 4090
ComfyUI API Server Started at Port 8188.
* Ready to accept Two-way Data Binding payloads...
💡 提示:此環境已掛載私有模型硬碟 (Volume ID: vol-9x8d)。所有產生的 JSON / 圖片在關機後仍會保留於 Supabase。