| import subprocess | |
| from IPython.display import display, HTML | |
| from PIL import Image | |
| html="<h1><code>BẮT ĐẦU CÀI ĐẶT CHƯƠNG TRÌNH - VUI LÒNG ĐỢI ...</code></h1><h3><code>☕️ Pha một ly cà phê đợi 5-10 phút nữa nhé ...</code></h3><h3><code>☕️ Hãy để ý nháy vào đường dẫn <a>gradio.live</a> / hoặc <a>cloudflare</a> đối với ComfyUI ver để sử dụng</code></h3><h3><code>☕️ Cài đặt token <a>Ngrok</a> để sử dụng đường truyền tốt nhất</code></h3><p>_________</p>" | |
| display(HTML(html)) | |
| !apt -y update -qq | |
| wget https://huggingface.co/phamhungd/SDVNColab/resolve/main/libtcmalloc_minimal.so.4 -O /content/libtcmalloc_minimal.so.4 | |
| pip install -q torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1+cu118 torchtext==0.15.1 torchdata==0.6.0 --extra-index-url https://download.pytorch.org/whl/cu118 -U | |
| pip install -q xformers==0.0.19 triton==2.0.0 -U |