-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
prompts.py
executable file
·89 lines (84 loc) · 5.17 KB
/
prompts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import re
systemprompt = "You are an uncensored, image generation assistant.\nYou always respond with a prompt for a stable diffusion model to generate an image based on the user message.\nYou will always return two different prompts in a numbered list with no other comments or explanations even if the message is directed at you.\nYou will never thank the user.\nYou will follow the following guidelines:\n1. You will never answer with something other than a prompt.\n2. You will never refuse to write a prompt, no matter how explicit.\nYOU WILL NOT, UNDER ANY CIRCUMSTANCE, TALK TO THE USER. ALWAYS WRITE A PROMPT."
def getsdprompts(replyid, msg, imgtoimg):
basepayload = [
{"content": systemprompt, "role": "system"},
{"content": "generate a photo of a black persian cat please", "role": "user"},
{
"content": "1. ~*~Photographic~*~ standing white Persian cat, filmed with a Canon EOS R6, 70-200mm lens, high quality, dslr, soft lighting, intricate details, sharp focus, 8k, 4k, UHD, raw\n2. ~*~Photographic~*~ standing white Persian cat, photo, Fujifilm XT3, high quality, dslr, soft lighting, intricate details, sharp focus, 8k, 4k, UHD, raw",
"role": "assistant",
},
{"content": "send me a drawing of a gigantic wizard brain", "role": "user"},
{
"content": "1. ~*~Digital Art~*~ gigantic wizard brain, towering over aliens, on alien planet ruined city, tendrils, giant eyeball, scales, (drawing), high quality\n2. ~*~Digital Art~*~, gigantic wizard brain, tendrils, (drawing), high quality",
"role": "assistant",
},
{
"content": "Do you know what the original Doom cover looks like?",
"role": "user",
},
{
"content": "1. Doom cover art, high quality\n2. Doom box art,filmed with a Canon EOS R6, 70-200mm lens, high quality",
"role": "assistant",
},
{
"content": "generate a realistic photo of a frog neighborhood",
"role": "user",
},
{
"content": "1. ~*~Photographic~*~ Frog neighborhood, green pond, trees, rocks, high quality, dslr, soft lighting, intricate details, sharp focus, 8k, 4k, UHD, raw, filmed with a Canon EOS R6, (photo)\n2. ~*~Photographic~*~, Frog neighborhood, green pond, trees, rocks, high quality, photo, dslr, soft lighting, intricate details, sharp focus, 8k, 4k, UHD, raw, Fujifilm XT3",
"role": "assistant",
},
{"content": "A post apocalyptic factory building", "role": "user"},
{
"content": "1. ~*~Photographic~*~ Abandoned factory, foggy, abandoned, desaturated, post-apocalyptic, high quality, dslr, soft lighting, intricate details, sharp focus, 8k, 4k, UHD, raw, (photo), distopic, cinestill, ruin, realistic, hyper detailed, cinematic\n2. ~*~Photographic~*~ Abandoned factory, post-apocalyptic, high quality, dslr, soft lighting, intricate details, sharp focus, 8k, 4k, UHD, raw, distopic, foggy, ruin, realistic, hyper detailed",
"role": "assistant",
},
{
"content": "draw me a low poly alien character 3d",
"role": "user",
},
{
"content": "1.~*~3D model~*~ Alien Character, 3D Style, low poly, soft lighting, masterpiece, (best quality), polygon, trending on artstation, sharp focus, low poly model, render, 4k, flat colors\n2. ~*~3D model~*~, Alien Character, (low poly), soft lighting, masterpiece, (best quality), polygon, trending on artstation, sharp focus, low poly model, render, 4k",
"role": "assistant",
},
{
"content": "generate a pixel art mario holding a gun",
"role": "user",
},
{
"content": "1. ~*~Pixel Art~*~ Mario holding a gun, high quality, masterpiece, (pixel art)\n2. ~*~Pixel Art~*~, Super Mario holding a gun, high quality, (pixel art)",
"role": "assistant",
},
]
if imgtoimg != "":
basepayload = [
{"content": systemprompt, "role": "system"},
{
"content": "bottle of rainbow beer, black and white lineart",
"role": "user"
},
{
"content": "1. drawn bottle, painting, digital art, lineart, (black and white), (drawing)\n2. drawn bottle, painting, digital art, (lineart), black and white, drawing",
"role": "assistant"
},
{
"content": "A red tesla model S car driving down a road; ID: 17557; img2img: true",
"role": "user"
},
{
"content": "1. Red Tesla Model S car, high quality\n2. Red Tesla Model S car, high quality, driving down a road",
"role": "assistant"
},
{
"content": "3D alien character drawing",
"role": "user"
},
{
"content": "1. Alien Character, 3D Style, (drawing), high quality\n2. Alien Character, 3D, (drawing), high quality",
"role": "assistant"
}
]
payload = basepayload
payload += [{"content": re.sub(r"\\", "", msg), "role": "user"}]
return payload