Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import spaces
|
|
7 |
lora_path = "OedoSoldier/detail-tweaker-lora"
|
8 |
|
9 |
@spaces.GPU
|
10 |
-
def generate_image(prompt, negative_prompt, num_inference_steps=
|
11 |
"""
|
12 |
Generate an image using Stable Diffusion based on the input prompt
|
13 |
"""
|
@@ -83,14 +83,14 @@ with gr.Blocks() as demo:
|
|
83 |
steps_slider = gr.Slider(
|
84 |
minimum=1,
|
85 |
maximum=100,
|
86 |
-
value=
|
87 |
step=1,
|
88 |
-
label="Number of
|
89 |
)
|
90 |
guidance_slider = gr.Slider(
|
91 |
minimum=1,
|
92 |
-
maximum=
|
93 |
-
value=7.
|
94 |
step=0.5,
|
95 |
label="Guidance Scale"
|
96 |
)
|
|
|
7 |
lora_path = "OedoSoldier/detail-tweaker-lora"
|
8 |
|
9 |
@spaces.GPU
|
10 |
+
def generate_image(prompt, negative_prompt, num_inference_steps=30, guidance_scale=7.0,model="Real6.0"):
|
11 |
"""
|
12 |
Generate an image using Stable Diffusion based on the input prompt
|
13 |
"""
|
|
|
83 |
steps_slider = gr.Slider(
|
84 |
minimum=1,
|
85 |
maximum=100,
|
86 |
+
value=30,
|
87 |
step=1,
|
88 |
+
label="Number of Steps"
|
89 |
)
|
90 |
guidance_slider = gr.Slider(
|
91 |
minimum=1,
|
92 |
+
maximum=10,
|
93 |
+
value=7.0,
|
94 |
step=0.5,
|
95 |
label="Guidance Scale"
|
96 |
)
|