Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,6 +70,7 @@ css = """
|
|
| 70 |
"""
|
| 71 |
|
| 72 |
available_models = [
|
|
|
|
| 73 |
"CompVis/stable-diffusion-v1-4",
|
| 74 |
"stabilityai/sdxl-turbo",
|
| 75 |
"runwayml/stable-diffusion-v1-5",
|
|
@@ -102,6 +103,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 102 |
placeholder="Enter a negative prompt",
|
| 103 |
visible=True,
|
| 104 |
)
|
|
|
|
| 105 |
seed = gr.Slider(
|
| 106 |
label="Seed",
|
| 107 |
minimum=0,
|
|
@@ -116,11 +118,10 @@ with gr.Blocks(css=css) as demo:
|
|
| 116 |
step=0.1,
|
| 117 |
value=7.0, # Replace with defaults that work for your model
|
| 118 |
)
|
| 119 |
-
|
| 120 |
num_inference_steps = gr.Slider(
|
| 121 |
label="Number of inference steps",
|
| 122 |
minimum=1,
|
| 123 |
-
maximum=
|
| 124 |
step=1,
|
| 125 |
value=20, # Replace with defaults that work for your model
|
| 126 |
)
|
|
@@ -149,6 +150,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 149 |
)
|
| 150 |
|
| 151 |
gr.Examples(examples=examples, inputs=[prompt])
|
|
|
|
| 152 |
gr.on(
|
| 153 |
triggers=[run_button.click, prompt.submit],
|
| 154 |
fn=infer,
|
|
|
|
| 70 |
"""
|
| 71 |
|
| 72 |
available_models = [
|
| 73 |
+
"SG161222/Realistic_Vision_V3.0_VAE"
|
| 74 |
"CompVis/stable-diffusion-v1-4",
|
| 75 |
"stabilityai/sdxl-turbo",
|
| 76 |
"runwayml/stable-diffusion-v1-5",
|
|
|
|
| 103 |
placeholder="Enter a negative prompt",
|
| 104 |
visible=True,
|
| 105 |
)
|
| 106 |
+
|
| 107 |
seed = gr.Slider(
|
| 108 |
label="Seed",
|
| 109 |
minimum=0,
|
|
|
|
| 118 |
step=0.1,
|
| 119 |
value=7.0, # Replace with defaults that work for your model
|
| 120 |
)
|
|
|
|
| 121 |
num_inference_steps = gr.Slider(
|
| 122 |
label="Number of inference steps",
|
| 123 |
minimum=1,
|
| 124 |
+
maximum=100,
|
| 125 |
step=1,
|
| 126 |
value=20, # Replace with defaults that work for your model
|
| 127 |
)
|
|
|
|
| 150 |
)
|
| 151 |
|
| 152 |
gr.Examples(examples=examples, inputs=[prompt])
|
| 153 |
+
|
| 154 |
gr.on(
|
| 155 |
triggers=[run_button.click, prompt.submit],
|
| 156 |
fn=infer,
|