Spaces:
Runtime error
Runtime error
Commit
·
6f88c5f
1
Parent(s):
6f0c7ad
Update app.py
Browse files
app.py
CHANGED
@@ -96,21 +96,10 @@ options = ['SD1.4', 'SD1.5', 'SD2.1']
|
|
96 |
|
97 |
with block:
|
98 |
gr.Markdown("SD vs. FreeU.")
|
99 |
-
with gr.
|
100 |
-
sd_options = gr.Dropdown(options, value='SD1.4', label="SD options")
|
101 |
-
model_id = "CompVis/stable-diffusion-v1-4"
|
102 |
-
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
103 |
-
with gr.Column():
|
104 |
-
text = gr.Textbox(
|
105 |
-
label="Enter your prompt",
|
106 |
-
show_label=False,
|
107 |
-
max_lines=1,
|
108 |
-
placeholder="Enter your prompt",
|
109 |
-
container=False,
|
110 |
-
)
|
111 |
-
btn = gr.Button("Generate image", scale=0)
|
112 |
-
|
113 |
with gr.Column():
|
|
|
|
|
114 |
with gr.Accordion('FreeU Parameters', open=False):
|
115 |
b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
|
116 |
minimum=1,
|
@@ -132,6 +121,17 @@ with block:
|
|
132 |
maximum=1,
|
133 |
step=0.1,
|
134 |
value=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
|
136 |
with gr.Row():
|
137 |
with gr.Column(min_width=256) as c1:
|
|
|
96 |
|
97 |
with block:
|
98 |
gr.Markdown("SD vs. FreeU.")
|
99 |
+
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
with gr.Column():
|
101 |
+
sd_options = gr.Dropdown(options, value='SD1.4', label="SD options")
|
102 |
+
model_id = "CompVis/stable-diffusion-v1-4"
|
103 |
with gr.Accordion('FreeU Parameters', open=False):
|
104 |
b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
|
105 |
minimum=1,
|
|
|
121 |
maximum=1,
|
122 |
step=0.1,
|
123 |
value=1)
|
124 |
+
with gr.Group():
|
125 |
+
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
126 |
+
with gr.Column():
|
127 |
+
text = gr.Textbox(
|
128 |
+
label="Enter your prompt",
|
129 |
+
show_label=False,
|
130 |
+
max_lines=1,
|
131 |
+
placeholder="Enter your prompt",
|
132 |
+
container=False,
|
133 |
+
)
|
134 |
+
btn = gr.Button("Generate image", scale=0)
|
135 |
|
136 |
with gr.Row():
|
137 |
with gr.Column(min_width=256) as c1:
|