Spaces:
Runtime error
Runtime error
Commit
·
a5bdce9
1
Parent(s):
caf264f
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,17 @@
|
|
1 |
import os
|
2 |
|
3 |
-
os.system('pip install paddlepaddle
|
|
|
4 |
os.system('pip install paddlenlp>=2.5.2')
|
5 |
os.system('pip install ppdiffusers>=0.14.0')
|
6 |
|
7 |
import gradio as gr
|
8 |
from ppdiffusers import StableDiffusionPipeline
|
9 |
import git
|
10 |
-
|
11 |
# 获取模型参数
|
12 |
repo = git.Repo.clone_from(url='https://huggingface.co/Liyulingyue/Neolle_Face_Generator', to_path="./dream_outputs")
|
13 |
-
|
14 |
# 加载模型
|
15 |
model_path = "dream_outputs"
|
16 |
pipe = StableDiffusionPipeline.from_pretrained(model_path)
|
|
|
1 |
import os
|
2 |
|
3 |
+
os.system('pip install paddlepaddle')
|
4 |
+
# os.system('pip install paddlepaddle-gpu==2.4.2.post117 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html')
|
5 |
os.system('pip install paddlenlp>=2.5.2')
|
6 |
os.system('pip install ppdiffusers>=0.14.0')
|
7 |
|
8 |
import gradio as gr
|
9 |
from ppdiffusers import StableDiffusionPipeline
|
10 |
import git
|
11 |
+
|
12 |
# 获取模型参数
|
13 |
repo = git.Repo.clone_from(url='https://huggingface.co/Liyulingyue/Neolle_Face_Generator', to_path="./dream_outputs")
|
14 |
+
|
15 |
# 加载模型
|
16 |
model_path = "dream_outputs"
|
17 |
pipe = StableDiffusionPipeline.from_pretrained(model_path)
|