Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,7 @@ import spaces
|
|
11 |
import torch
|
12 |
from diffusers import (
|
13 |
StableDiffusionXLPipeline,
|
14 |
-
DPMSolverMultistepScheduler
|
15 |
-
AutoencoderKL
|
16 |
)
|
17 |
DESCRIPTION = """
|
18 |
# [Visionix Playground](https://huggingface.co/spaces/ehristoforu/Visionix-Playground)
|
@@ -56,7 +55,7 @@ def generate(
|
|
56 |
seed: int = 0,
|
57 |
width: int = 1024,
|
58 |
height: int = 1024,
|
59 |
-
guidance_scale: float =
|
60 |
randomize_seed: bool = False,
|
61 |
progress=gr.Progress(track_tqdm=True),
|
62 |
):
|
@@ -123,9 +122,9 @@ with gr.Blocks(title="Visionix Playground", css=css) as demo:
|
|
123 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|
124 |
negative_prompt = gr.Text(
|
125 |
label="Negative prompt",
|
126 |
-
max_lines=
|
127 |
-
lines=
|
128 |
-
value="",
|
129 |
placeholder="Enter a negative prompt",
|
130 |
visible=True,
|
131 |
)
|
|
|
11 |
import torch
|
12 |
from diffusers import (
|
13 |
StableDiffusionXLPipeline,
|
14 |
+
DPMSolverMultistepScheduler
|
|
|
15 |
)
|
16 |
DESCRIPTION = """
|
17 |
# [Visionix Playground](https://huggingface.co/spaces/ehristoforu/Visionix-Playground)
|
|
|
55 |
seed: int = 0,
|
56 |
width: int = 1024,
|
57 |
height: int = 1024,
|
58 |
+
guidance_scale: float = 5.5,
|
59 |
randomize_seed: bool = False,
|
60 |
progress=gr.Progress(track_tqdm=True),
|
61 |
):
|
|
|
122 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
|
123 |
negative_prompt = gr.Text(
|
124 |
label="Negative prompt",
|
125 |
+
max_lines=8,
|
126 |
+
lines=6,
|
127 |
+
value="cartoon, 3D, disfigured, bad, art, deformed, extra limbs, weird, blurry, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn, hands, poorly drawn face, mutation, ugly, bad, anatomy, bad proportions, extra limbs, clone, clone-faced, cross proportions, missing arms, malformed limbs, missing legs, mutated, hands, fused fingers, too many fingers, photo shop, video game, ugly, tiling, cross-eye, mutation of eyes, long neck, bonnet, hat, beanie, cap, B&W",
|
128 |
placeholder="Enter a negative prompt",
|
129 |
visible=True,
|
130 |
)
|