Update app.py
Browse files
app.py
CHANGED
@@ -85,12 +85,17 @@ with gr.Blocks(css=css) as demo:
|
|
85 |
with gr.Column(elem_id="col-container"):
|
86 |
gr.Markdown(" # Text-to-Image Gradio Template")
|
87 |
|
88 |
-
model_id_input = gr.
|
89 |
-
label="
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
91 |
show_label=True,
|
92 |
-
|
93 |
-
|
94 |
with gr.Row():
|
95 |
lscale = gr.Slider(
|
96 |
label="Lora scale",
|
@@ -109,12 +114,13 @@ with gr.Blocks(css=css) as demo:
|
|
109 |
placeholder="Enter your prompt",
|
110 |
container=False,
|
111 |
)
|
112 |
-
|
|
|
113 |
controlnet_enabled = gr.Checkbox(label="Enable ControlNet", value=False)
|
114 |
|
115 |
with gr.Row():
|
116 |
control_strength = gr.Slider(
|
117 |
-
label="ControlNet
|
118 |
minimum=0.0,
|
119 |
maximum=1.0,
|
120 |
step=0.05,
|
|
|
85 |
with gr.Column(elem_id="col-container"):
|
86 |
gr.Markdown(" # Text-to-Image Gradio Template")
|
87 |
|
88 |
+
model_id_input = gr.Dropdown(
|
89 |
+
label="Choose Model",
|
90 |
+
choices=[
|
91 |
+
"stable-diffusion-v1-5/stable-diffusion-v1-5",
|
92 |
+
"CompVis/stable-diffusion-v1-4",
|
93 |
+
"stable-diffusion-v1-5/stable-diffusion-v1-5 with lora",
|
94 |
+
],
|
95 |
+
value="stable-diffusion-v1-5/stable-diffusion-v1-5 with lora",
|
96 |
show_label=True,
|
97 |
+
type="str",
|
98 |
+
|
99 |
with gr.Row():
|
100 |
lscale = gr.Slider(
|
101 |
label="Lora scale",
|
|
|
114 |
placeholder="Enter your prompt",
|
115 |
container=False,
|
116 |
)
|
117 |
+
|
118 |
+
with gr.Accordion("ControlNet Settings", open=False):
|
119 |
controlnet_enabled = gr.Checkbox(label="Enable ControlNet", value=False)
|
120 |
|
121 |
with gr.Row():
|
122 |
control_strength = gr.Slider(
|
123 |
+
label="ControlNet scale",
|
124 |
minimum=0.0,
|
125 |
maximum=1.0,
|
126 |
step=0.05,
|