Leonliclash
commited on
Commit
·
9dcfca9
1
Parent(s):
d3e1f9b
Upload start.txt
Browse files
start.txt
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
from IPython.display import display, HTML
|
3 |
+
from PIL import Image
|
4 |
+
|
5 |
+
html = """
|
6 |
+
<h1><code>开始安装程序 - 请稍等...</code></h1>
|
7 |
+
<h3><code>☕️ 冲杯咖啡并再等5-10分钟吧...</code></h3>
|
8 |
+
<h3><code>☕️ 请注意点击链接 <a>gradio.live</a> 或对于 ComfyUI 版本使用 <a>cloudflare</a></code></h3>
|
9 |
+
<h3><code>☕️ 安装 Ngrok 令牌以获得最佳连接。</code></h3>
|
10 |
+
<p>_________</p>
|
11 |
+
"""
|
12 |
+
|
13 |
+
display(HTML(html))
|
14 |
+
|
15 |
+
!apt -y update -qq
|
16 |
+
!wget https://huggingface.co/phamhungd/SDVNColab/resolve/main/libtcmalloc_minimal.so.4 -O /content/libtcmalloc_minimal.so.4
|
17 |
+
|
18 |
+
!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
|
19 |
+
!pip install -q xformers==0.0.19 triton==2.0.0 -U
|