Spaces:
Running on Zero
Running on Zero
Unbranded-by-default prompts (no third-party logos)
Browse files
gen.py
CHANGED
|
@@ -105,10 +105,14 @@ def _seed(seed):
|
|
| 105 |
return random.randint(0, 2**31 - 1) if s < 0 else s
|
| 106 |
|
| 107 |
|
|
|
|
|
|
|
|
|
|
| 108 |
def style_prompt(prompt: str, style: str) -> str:
|
| 109 |
extra = STYLES.get(style, "")
|
| 110 |
p = (prompt or "").strip().rstrip(".")
|
| 111 |
-
|
|
|
|
| 112 |
|
| 113 |
|
| 114 |
def _save_png(img: Image.Image, tag: str) -> str:
|
|
|
|
| 105 |
return random.randint(0, 2**31 - 1) if s < 0 else s
|
| 106 |
|
| 107 |
|
| 108 |
+
CLEAN = "original unbranded design, plain clothing and products without any brand logos or third-party trademarks, no watermark"
|
| 109 |
+
|
| 110 |
+
|
| 111 |
def style_prompt(prompt: str, style: str) -> str:
|
| 112 |
extra = STYLES.get(style, "")
|
| 113 |
p = (prompt or "").strip().rstrip(".")
|
| 114 |
+
p = f"{p}, {extra}" if extra else p
|
| 115 |
+
return f"{p}, {CLEAN}"
|
| 116 |
|
| 117 |
|
| 118 |
def _save_png(img: Image.Image, tag: str) -> str:
|