Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bing-su committed May 19, 2024
2 parents 0187228 + 944be82 commit 397a724
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
python-version:
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v4
Expand All @@ -22,10 +23,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- uses: yezz123/setup-uv@v4

- name: Install dependencies
run: |
pip install .
pip install pytest
uv pip install --system . pytest
- name: Run tests
run: pytest -v
Expand Down
3 changes: 3 additions & 0 deletions aaaaaa/conditional.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from __future__ import annotations

from PIL import Image
from rich import print

try:
from modules.processing import create_binary_mask
except ImportError:
msg = "[-] ADetailer: Support for webui versions below 1.6.0 will be discontinued."
print(msg)

def create_binary_mask(image: Image.Image):
return image.convert("L")
Expand Down

0 comments on commit 397a724

Please sign in to comment.