Liyulingyue commited on
Commit
1fa3748
·
1 Parent(s): 899ef55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,14 +1,15 @@
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
  # 加载模型
 
1
  import os
2
 
3
+ # os.system('pip install paddlepaddle') # for cpu enviroment
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
 
11
+ # 通过git获取仓库模型,并读取
12
+ # import git
13
  # 获取模型参数
14
  # repo = git.Repo.clone_from(url='https://huggingface.co/Liyulingyue/Neolle_Face_Generator', to_path="./dream_outputs")
15
  # 加载模型