Spaces:
Running
on
Zero
Running
on
Zero
TheAwakenOne
commited on
Commit
•
db5708c
1
Parent(s):
adddbc4
Updates
Browse files- app.py +9 -7
- loras.json +22 -11
app.py
CHANGED
@@ -62,7 +62,8 @@ def update_selection(evt: gr.SelectData, width, height):
|
|
62 |
global selected_lora_index
|
63 |
selected_lora_index = evt.index
|
64 |
selected_lora = loras[evt.index]
|
65 |
-
|
|
|
66 |
lora_repo = selected_lora["repo"]
|
67 |
updated_text = f"### Selected: [{lora_repo}](https://huggingface.co/{lora_repo}) ✨"
|
68 |
if "aspect" in selected_lora:
|
@@ -167,11 +168,12 @@ with gr.Blocks() as demo:
|
|
167 |
)
|
168 |
|
169 |
with gr.Row():
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
175 |
|
176 |
with gr.Row():
|
177 |
generate = gr.Button("Generate", variant="primary", interactive=False)
|
@@ -185,7 +187,7 @@ with gr.Blocks() as demo:
|
|
185 |
|
186 |
with gr.Row():
|
187 |
with gr.Column():
|
188 |
-
steps = gr.Slider(minimum=1, maximum=100, value=
|
189 |
cfg_scale = gr.Slider(minimum=1, maximum=20, value=3.5, step=0.1, label="CFG Scale")
|
190 |
lora_scale = gr.Slider(minimum=0, maximum=2, value=1, step=0.1, label="LoRA Scale")
|
191 |
with gr.Column():
|
|
|
62 |
global selected_lora_index
|
63 |
selected_lora_index = evt.index
|
64 |
selected_lora = loras[evt.index]
|
65 |
+
default_prompt = selected_lora.get('default_prompt', '')
|
66 |
+
new_placeholder = f"{selected_lora['trigger_word']} {default_prompt}"
|
67 |
lora_repo = selected_lora["repo"]
|
68 |
updated_text = f"### Selected: [{lora_repo}](https://huggingface.co/{lora_repo}) ✨"
|
69 |
if "aspect" in selected_lora:
|
|
|
168 |
)
|
169 |
|
170 |
with gr.Row():
|
171 |
+
prompt = gr.Textbox(
|
172 |
+
label="Prompt",
|
173 |
+
placeholder="Type your prompt here...",
|
174 |
+
show_label=True,
|
175 |
+
value="" # Start with an empty prompt
|
176 |
+
)
|
177 |
|
178 |
with gr.Row():
|
179 |
generate = gr.Button("Generate", variant="primary", interactive=False)
|
|
|
187 |
|
188 |
with gr.Row():
|
189 |
with gr.Column():
|
190 |
+
steps = gr.Slider(minimum=1, maximum=100, value=25, step=1, label="Steps")
|
191 |
cfg_scale = gr.Slider(minimum=1, maximum=20, value=3.5, step=0.1, label="CFG Scale")
|
192 |
lora_scale = gr.Slider(minimum=0, maximum=2, value=1, step=0.1, label="LoRA Scale")
|
193 |
with gr.Column():
|
loras.json
CHANGED
@@ -3,66 +3,77 @@
|
|
3 |
"image": "https://huggingface.co/TheAwakenOne/camberganng/resolve/main/images/example_8jhtkanli.png",
|
4 |
"title": "camberganng",
|
5 |
"repo": "TheAwakenOne/camberganng",
|
6 |
-
"trigger_word": "CMBER"
|
|
|
7 |
},
|
8 |
{
|
9 |
"image": "https://huggingface.co/TheAwakenOne/Marilyn-Monroe/resolve/main/sample/Marilyn%20Monroe_000600_01_20240917012312.png",
|
10 |
"title": "Marilyn-Monroe",
|
11 |
"repo": "TheAwakenOne/Marilyn-Monroe",
|
12 |
-
"trigger_word": "Marilyn Monroe"
|
|
|
13 |
},
|
14 |
{
|
15 |
"image": "https://huggingface.co/TheAwakenOne/The-Maxx-Style/resolve/main/images/example_5j9t9fzzc.png",
|
16 |
"title": "The-Maxx-Style",
|
17 |
"repo": "TheAwakenOne/The-Maxx-Style",
|
18 |
-
"trigger_word": "the maxx style"
|
|
|
19 |
},
|
20 |
{
|
21 |
"image": "https://huggingface.co/TheAwakenOne/The-Mask-Lora/resolve/main/images/ComfyUI_00847_.png",
|
22 |
"title": "The-Mask-Lora",
|
23 |
"repo": "TheAwakenOne/The-Mask-Lora",
|
24 |
-
"trigger_word": "the mask style"
|
|
|
25 |
},
|
26 |
{
|
27 |
"image": "https://huggingface.co/TheAwakenOne/graffiti-style/resolve/main/images/example_lbxcragsi.png",
|
28 |
"title": "graffiti-style",
|
29 |
"repo": "TheAwakenOne/graffiti-style",
|
30 |
-
"trigger_word": "GRFTI"
|
|
|
31 |
},
|
32 |
{
|
33 |
"image": "https://huggingface.co/TheAwakenOne/rockbrow/resolve/main/sample/rockbrow_000600_02_20240923012526.png",
|
34 |
"title": "rockbrow",
|
35 |
"repo": "TheAwakenOne/rockbrow",
|
36 |
-
"trigger_word": "PeopleBrow"
|
|
|
37 |
},
|
38 |
{
|
39 |
"image": "https://huggingface.co/TheAwakenOne/ldlaughingmemeface/resolve/main/sample/ldlaughingmemeface_000450_01_20241001223612.png",
|
40 |
"title": "ldlaughingmemeface",
|
41 |
"repo": "TheAwakenOne/ldlaughingmemeface",
|
42 |
-
"trigger_word": "LDME"
|
|
|
43 |
},
|
44 |
{
|
45 |
"image": "https://huggingface.co/TheAwakenOne/mtdp-balloon-character/resolve/main/sample/mtdp-balloon-character_000800_00_20241015003502.png",
|
46 |
"title": "mtdp-balloon-character",
|
47 |
"repo": "TheAwakenOne/mtdp-balloon-character",
|
48 |
-
"trigger_word": "FLOAT"
|
|
|
49 |
},
|
50 |
{
|
51 |
"image": "https://huggingface.co/TheAwakenOne/watercolor/resolve/main/sample/watercolor_000900_02_20241010021119.png",
|
52 |
"title": "watercolor",
|
53 |
"repo": "TheAwakenOne/watercolor",
|
54 |
-
"trigger_word": "WAT3R"
|
|
|
55 |
},
|
56 |
{
|
57 |
"image": "https://huggingface.co/TheAwakenOne/max-headroom/resolve/main/images/example_gm7jfx8a1.png",
|
58 |
"title": "max-headroom",
|
59 |
"repo": "TheAwakenOne/max-headroom",
|
60 |
-
"trigger_word": "M2X"
|
|
|
61 |
},
|
62 |
{
|
63 |
"image": "https://huggingface.co/TheAwakenOne/caricature/resolve/main/images/example_gzbm8wswr.png",
|
64 |
"title": "caricature",
|
65 |
"repo": "TheAwakenOne/caricature",
|
66 |
-
"trigger_word": "CCTUR3"
|
|
|
67 |
}
|
68 |
]
|
|
|
3 |
"image": "https://huggingface.co/TheAwakenOne/camberganng/resolve/main/images/example_8jhtkanli.png",
|
4 |
"title": "camberganng",
|
5 |
"repo": "TheAwakenOne/camberganng",
|
6 |
+
"trigger_word": "CMBER",
|
7 |
+
"default_prompt": "a (Black Pearl 1960's VW Bug) with camber suspension, (parked in a showroom), all windows limo tint"
|
8 |
},
|
9 |
{
|
10 |
"image": "https://huggingface.co/TheAwakenOne/Marilyn-Monroe/resolve/main/sample/Marilyn%20Monroe_000600_01_20240917012312.png",
|
11 |
"title": "Marilyn-Monroe",
|
12 |
"repo": "TheAwakenOne/Marilyn-Monroe",
|
13 |
+
"trigger_word": "Marilyn Monroe",
|
14 |
+
"default_prompt": "with a bright smile on her face. She is wearing (a white dress with a plunging neckline) and her signature blonde hair is styled in curls. (Her eyes are bright and her lips are curved)”"
|
15 |
},
|
16 |
{
|
17 |
"image": "https://huggingface.co/TheAwakenOne/The-Maxx-Style/resolve/main/images/example_5j9t9fzzc.png",
|
18 |
"title": "The-Maxx-Style",
|
19 |
"repo": "TheAwakenOne/The-Maxx-Style",
|
20 |
+
"trigger_word": "the maxx style",
|
21 |
+
"default_prompt": "(picking up a car over his head) with one clenched hand (flipping the viewer)"
|
22 |
},
|
23 |
{
|
24 |
"image": "https://huggingface.co/TheAwakenOne/The-Mask-Lora/resolve/main/images/ComfyUI_00847_.png",
|
25 |
"title": "The-Mask-Lora",
|
26 |
"repo": "TheAwakenOne/The-Mask-Lora",
|
27 |
+
"trigger_word": "the mask style",
|
28 |
+
"default_prompt": "(charcoal gray suit and bowler hat), with a sly smirk on face,wearing a green mask, (standing under a streetlamp in fog)"
|
29 |
},
|
30 |
{
|
31 |
"image": "https://huggingface.co/TheAwakenOne/graffiti-style/resolve/main/images/example_lbxcragsi.png",
|
32 |
"title": "graffiti-style",
|
33 |
"repo": "TheAwakenOne/graffiti-style",
|
34 |
+
"trigger_word": "GRFTI",
|
35 |
+
"default_prompt": "graffiti art features the word (GRAFFITI) in bold, (Blue) letters with a 3D effect, and (lora) below it in (green). The background is dynamic, with patches of spray paint. The piece includes (a Spray can cartoon-like character with a grin, adding to its playful and energetic atmosphere), enhancing its nostalgic feel, a very far shot,"
|
36 |
},
|
37 |
{
|
38 |
"image": "https://huggingface.co/TheAwakenOne/rockbrow/resolve/main/sample/rockbrow_000600_02_20240923012526.png",
|
39 |
"title": "rockbrow",
|
40 |
"repo": "TheAwakenOne/rockbrow",
|
41 |
+
"trigger_word": "PeopleBrow",
|
42 |
+
"default_prompt": "(man) with intense gaze, (close-up portrait)"
|
43 |
},
|
44 |
{
|
45 |
"image": "https://huggingface.co/TheAwakenOne/ldlaughingmemeface/resolve/main/sample/ldlaughingmemeface_000450_01_20241001223612.png",
|
46 |
"title": "ldlaughingmemeface",
|
47 |
"repo": "TheAwakenOne/ldlaughingmemeface",
|
48 |
+
"trigger_word": "LDME",
|
49 |
+
"default_prompt": "Close-up of (a smirking businessman) with arched eyebrows, squinting eyes, and a slightly open mouth. (He's holding a coffee mug in an office setting)"
|
50 |
},
|
51 |
{
|
52 |
"image": "https://huggingface.co/TheAwakenOne/mtdp-balloon-character/resolve/main/sample/mtdp-balloon-character_000800_00_20241015003502.png",
|
53 |
"title": "mtdp-balloon-character",
|
54 |
"repo": "TheAwakenOne/mtdp-balloon-character",
|
55 |
+
"trigger_word": "FLOAT",
|
56 |
+
"default_prompt": "a giant (Pikachu) balloon soaring through the city streets, its (bright yellow color) and (cheerful expression) captivating the crowd. (Accompanied by Eevee in a Poké Ball-themed sleigh)"
|
57 |
},
|
58 |
{
|
59 |
"image": "https://huggingface.co/TheAwakenOne/watercolor/resolve/main/sample/watercolor_000900_02_20241010021119.png",
|
60 |
"title": "watercolor",
|
61 |
"repo": "TheAwakenOne/watercolor",
|
62 |
+
"trigger_word": "WAT3R",
|
63 |
+
"default_prompt": "a beautiful watercolor painting of (a woman) with (blue hair) against a white background"
|
64 |
},
|
65 |
{
|
66 |
"image": "https://huggingface.co/TheAwakenOne/max-headroom/resolve/main/images/example_gm7jfx8a1.png",
|
67 |
"title": "max-headroom",
|
68 |
"repo": "TheAwakenOne/max-headroom",
|
69 |
+
"trigger_word": "M2X",
|
70 |
+
"default_prompt": "a close-up of a retro (John wick) character with slicked-back (hair) and a confident smile. He is set against a background of dynamic, colorful neon lines, emphasizing his bold and charismatic presence in a retro-80s vibe"
|
71 |
},
|
72 |
{
|
73 |
"image": "https://huggingface.co/TheAwakenOne/caricature/resolve/main/images/example_gzbm8wswr.png",
|
74 |
"title": "caricature",
|
75 |
"repo": "TheAwakenOne/caricature",
|
76 |
+
"trigger_word": "CCTUR3",
|
77 |
+
"default_prompt": "enthusiastic (Iron-man) fan with exaggerated facial features beams with joy, his cartoonishly large head merging seamlessly with a dynamic, (mechanical-slinging superhero body in mid-action pose)"
|
78 |
}
|
79 |
]
|