zhiweili
commited on
Commit
Β·
ddfe538
1
Parent(s):
34c126d
append path
Browse files- app_onediff.py +4 -0
app_onediff.py
CHANGED
@@ -11,10 +11,14 @@ from diffusers import (
|
|
11 |
AutoencoderTiny,
|
12 |
)
|
13 |
|
|
|
|
|
14 |
os.system("python3 -m pip --no-cache-dir install --pre nexfort -f https://github.com/siliconflow/nexfort_releases/releases/expanded_assets/torch2.4.1_cu121")
|
15 |
os.system("git clone https://github.com/siliconflow/onediff.git")
|
16 |
os.system("cd onediff && python3 -m pip install -e .")
|
|
|
17 |
os.system("cd onediff/onediff_diffusers_extensions && python3 -m pip install -e .")
|
|
|
18 |
|
19 |
os.system("pip show nexfort")
|
20 |
os.system("pip show onediff")
|
|
|
11 |
AutoencoderTiny,
|
12 |
)
|
13 |
|
14 |
+
import sys
|
15 |
+
|
16 |
os.system("python3 -m pip --no-cache-dir install --pre nexfort -f https://github.com/siliconflow/nexfort_releases/releases/expanded_assets/torch2.4.1_cu121")
|
17 |
os.system("git clone https://github.com/siliconflow/onediff.git")
|
18 |
os.system("cd onediff && python3 -m pip install -e .")
|
19 |
+
sys.append("/home/user/app/onediff/src")
|
20 |
os.system("cd onediff/onediff_diffusers_extensions && python3 -m pip install -e .")
|
21 |
+
sys.append("/home/user/app/onediff/onediff_diffusers_extensions/src")
|
22 |
|
23 |
os.system("pip show nexfort")
|
24 |
os.system("pip show onediff")
|