Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,26 +4,34 @@ import os
|
|
4 |
|
5 |
|
6 |
models = {
|
7 |
-
"Face Projection": gr.load("models/Purz/face-projection"),
|
8 |
"Flux LoRA Uncensored": gr.load("models/prashanth970/flux-lora-uncensored"),
|
9 |
"NSFW TrioHMH Flux": gr.load("models/DiegoJR1973/NSFW-TrioHMH-Flux"),
|
10 |
"NSFW Master": gr.load("models/pimpilikipilapi1/NSFW_master")
|
11 |
}
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
result_images = {}
|
15 |
for model_name, model in models.items():
|
16 |
-
result_images[model_name] = model(text)
|
17 |
-
|
18 |
-
print(f"Inference Steps: {num_inference_steps}")
|
19 |
|
20 |
return [result_images[model_name] for model_name in models]
|
21 |
|
22 |
interface = gr.Interface(
|
23 |
fn=generate_image,
|
24 |
inputs=[
|
25 |
-
gr.Textbox(label="Type
|
26 |
-
gr.
|
27 |
],
|
28 |
outputs=[gr.Image(label=model_name) for model_name in models],
|
29 |
theme="NoCrypt/miku",
|
|
|
4 |
|
5 |
|
6 |
models = {
|
|
|
7 |
"Flux LoRA Uncensored": gr.load("models/prashanth970/flux-lora-uncensored"),
|
8 |
"NSFW TrioHMH Flux": gr.load("models/DiegoJR1973/NSFW-TrioHMH-Flux"),
|
9 |
"NSFW Master": gr.load("models/pimpilikipilapi1/NSFW_master")
|
10 |
}
|
11 |
|
12 |
+
|
13 |
+
default_negative_prompt = (
|
14 |
+
"Extra limbs, Extra fingers or toes, Disfigured face, Distorted hands, Mutated body parts, "
|
15 |
+
"Missing limbs, Asymmetrical features, Blurry face, Poor anatomy, Incorrect proportions, Crooked eyes, "
|
16 |
+
"Deformed hands or fingers, Double face, Unrealistic skin texture, Overly smooth skin, Poor lighting, "
|
17 |
+
"Cartoonish appearance, Plastic look, Grainy, Unnatural expressions, Crossed eyes, Mutated clothing, "
|
18 |
+
"Artifacts, Uncanny valley, Doll-like features, Bad symmetry, Uneven skin tones, Extra teeth, "
|
19 |
+
"Unrealistic hair texture, Dark shadows on face, Overexposed face, Cluttered background, Text, watermark, "
|
20 |
+
"or signature, Over-processed"
|
21 |
+
)
|
22 |
+
|
23 |
+
def generate_image(text, negative_prompt):
|
24 |
result_images = {}
|
25 |
for model_name, model in models.items():
|
26 |
+
result_images[model_name] = model(text, negative_prompt=negative_prompt)
|
|
|
|
|
27 |
|
28 |
return [result_images[model_name] for model_name in models]
|
29 |
|
30 |
interface = gr.Interface(
|
31 |
fn=generate_image,
|
32 |
inputs=[
|
33 |
+
gr.Textbox(label="Type your prompt here:", placeholder="Describe what you want..."),
|
34 |
+
gr.Textbox(label="Negative prompt:", value=default_negative_prompt),
|
35 |
],
|
36 |
outputs=[gr.Image(label=model_name) for model_name in models],
|
37 |
theme="NoCrypt/miku",
|