diff --git a/README.md b/README.md index 00cbda0..25ef904 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This is a Diffusers-based script for running Stable Diffusion on [Modal](https:/ The app requires the following to run: - python: >= 3.11 -- modal: >= 0.64.155 +- modal: >= 0.72.20 - A token for Modal. The `modal` is the Python library. In order to install that: diff --git a/README_ja.md b/README_ja.md index e28bc00..623ef06 100644 --- a/README_ja.md +++ b/README_ja.md @@ -23,7 +23,7 @@ このスクリプトを実行するには最低限下記のツールが必要です: - python: >= 3.11 -- modal: >= 0.64.155 +- modal: >= 0.72.20 - ModalのAPIトークン - Hagging FaceのAPIトークン(非公開のリポジトリのモデルを参照したい場合に必須) diff --git a/app/setup.py b/app/setup.py index 8718a4b..9096803 100644 --- a/app/setup.py +++ b/app/setup.py @@ -4,7 +4,7 @@ from pathlib import Path import diffusers from huggingface_hub import login -from modal import App, Image, Mount, Secret +from modal import App, Image, Secret BASE_CACHE_PATH = "/vol/cache" BASE_CACHE_PATH_LORA = "/vol/cache/lora" @@ -177,12 +177,10 @@ def build_image() -> None: app = App("stable-diffusion-cli") base_stub = Image.from_dockerfile( path="Dockerfile", - context_mount=Mount.from_local_file("requirements.txt"), ) app.image = base_stub.dockerfile_commands( "FROM base", "COPY config.yml /", - context_mount=Mount.from_local_file("config.yml"), ).run_function( build_image, secrets=[Secret.from_dotenv(__file__)],