This commit is contained in:
2026-03-09 15:55:31 -07:00
parent 629bdb3d78
commit 44926b751d
2 changed files with 7 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import time
import urllib.error
import urllib.request
import uuid
import random
from urllib.parse import urlencode
@@ -132,6 +133,7 @@ def extract_mask(
workflow["1:68"]["inputs"]["prompt"] = prompt_text
workflow["87"]["inputs"]["image"] = base64_image
workflow["50"]["inputs"]["seed"] = random.randint(1, 100000000)
unique_id = str(uuid.uuid4())[:8]
filename_prefix = f"masks/mask_{unique_id}"