diff --git a/README.md b/README.md index c31695b..142b0d5 100644 --- a/README.md +++ b/README.md @@ -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?" ``` diff --git a/docs/README_ZH.md b/docs/README_ZH.md index 8572ae8..ba7f20f 100644 --- a/docs/README_ZH.md +++ b/docs/README_ZH.md @@ -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?" diff --git a/operategpt/providers/stablediffusion.py b/operategpt/providers/stablediffusion.py index 0186edc..6a119dd 100644 --- a/operategpt/providers/stablediffusion.py +++ b/operategpt/providers/stablediffusion.py @@ -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(