Skip to content

Commit

Permalink
fix: modify stablediffusion models address
Browse files Browse the repository at this point in the history
 modify stablediffusion models address
  • Loading branch information
xuyuan23 committed Aug 10, 2023
1 parent 020a364 commit 7464edd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Then, download dependencies and launch your project.
pip install -r requirements.txt
# copy file `.env.template` to new file `.env`, and modify the params in `.env`.
copy .env.template .env
cp .env.template .env
# deploy stablediffusion service, if StableDiffusion proxy is used, no need to execute it!
python operategpt/provider/stablediffusion.py
python operategpt/providers/stablediffusion.py
python main.py "what is MetaGPT?"
```
Expand Down
4 changes: 2 additions & 2 deletions docs/README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ git clone https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
pip install -r requirements.txt
# 复制.env.template文件内容到新创建的.env文件中,并修改.env文件中的内容
copy .env.template .env
cp .env.template .env
# 启动stablediffusion服务, 如果使用了StableDiffusion代理,则无需执行!
python operategpt/provider/stablediffusion.py
python operategpt/providers/stablediffusion.py
# 执行项目,将会生成一个markdown文件 /data/operation_data/xxx.md
python main.py "what is MetaGPT?"
Expand Down
2 changes: 1 addition & 1 deletion operategpt/providers/stablediffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

ROOT_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
DATA_PATH = os.path.join(ROOT_PATH, "data")
MODEL_PATH = os.path.join(ROOT_PATH, "model")
MODEL_PATH = os.path.join(ROOT_PATH, "models")
SD_MODEL = os.getenv("SD_MODEL", "stable-diffusion-xl-base-1.0")

pipe = DiffusionPipeline.from_pretrained(
Expand Down

0 comments on commit 7464edd

Please sign in to comment.