Spaces:
Runtime error
Runtime error
Add some prompts for even more diversity
Browse files
app.py
CHANGED
|
@@ -35,6 +35,30 @@ safe_prompts = [
|
|
| 35 |
"a person, black sweater, long coat, gray trousers"
|
| 36 |
]
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
pipe_safety = pipeline("text-generation", model="HuggingFaceH4/zephyr-7b-beta", torch_dtype=torch.bfloat16, device_map="auto")
|
| 40 |
|
|
|
|
| 35 |
"a person, black sweater, long coat, gray trousers"
|
| 36 |
]
|
| 37 |
|
| 38 |
+
additional_safe_prompts = [
|
| 39 |
+
"a person, white blouse, navy skirt, black flats",
|
| 40 |
+
"a person, denim overalls, striped shirt, sneakers",
|
| 41 |
+
"a person, green parka, wool scarf, winter boots",
|
| 42 |
+
"a person, silk shirt, high-waisted trousers, loafers",
|
| 43 |
+
"a person, traditional sari, gold bangles, sandals",
|
| 44 |
+
"a person, lab coat, dress shirt, slacks",
|
| 45 |
+
"a person, chef uniform, apron, white hat",
|
| 46 |
+
"a person, flight attendant uniform, scarf, heels",
|
| 47 |
+
"a person, construction vest, hard hat, work boots",
|
| 48 |
+
"a person, navy sweater, corduroy pants, brown boots",
|
| 49 |
+
"a person, red hoodie, jeans, running shoes",
|
| 50 |
+
"a person, black tunic, leggings, sandals",
|
| 51 |
+
"a person, plaid shirt, jeans, cowboy boots",
|
| 52 |
+
"a person, white jumpsuit, belt, ankle boots",
|
| 53 |
+
"a person, vintage dress, pearl earrings, pumps",
|
| 54 |
+
"a person, medical scrubs, sneakers, ID badge",
|
| 55 |
+
"a person, blue windbreaker, track pants, sneakers",
|
| 56 |
+
"a person, bohemian blouse, long skirt, sandals",
|
| 57 |
+
"a person, blazer, graphic tee, ripped jeans",
|
| 58 |
+
"a person, puffer jacket, beanie, hiking shoes"
|
| 59 |
+
]
|
| 60 |
+
|
| 61 |
+
safe_prompts += additional_safe_prompts
|
| 62 |
|
| 63 |
pipe_safety = pipeline("text-generation", model="HuggingFaceH4/zephyr-7b-beta", torch_dtype=torch.bfloat16, device_map="auto")
|
| 64 |
|