Spaces:
Runtime error
Runtime error
Commit
·
4f51d6f
1
Parent(s):
afd35b0
Update app.py
Browse files
app.py
CHANGED
@@ -100,46 +100,49 @@ with block:
|
|
100 |
with gr.Row():
|
101 |
sd_options = gr.Dropdown(['SD1.4', 'SD1.5', 'SD2.1'], value='SD1.4', label="SD options")
|
102 |
|
103 |
-
with gr.Column():
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
111 |
|
112 |
|
113 |
with gr.Row():
|
114 |
with gr.Group():
|
115 |
-
# with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
116 |
-
# with gr.Column():
|
117 |
-
# text = gr.Textbox(
|
118 |
-
# label="Enter your prompt",
|
119 |
-
# show_label=False,
|
120 |
-
# max_lines=1,
|
121 |
-
# placeholder="Enter your prompt",
|
122 |
-
# container=False,
|
123 |
-
# )
|
124 |
btn = gr.Button("Generate image", scale=0)
|
125 |
-
|
126 |
with gr.Row():
|
127 |
with gr.Column(min_width=256) as c1:
|
128 |
image_1 = gr.Image(interactive=False)
|
129 |
image_1_label = gr.Markdown("SD")
|
130 |
|
131 |
with gr.Group():
|
132 |
-
# with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
133 |
-
# with gr.Column():
|
134 |
-
# text = gr.Textbox(
|
135 |
-
# label="Enter your prompt",
|
136 |
-
# show_label=False,
|
137 |
-
# max_lines=1,
|
138 |
-
# placeholder="Enter your prompt",
|
139 |
-
# container=False,
|
140 |
-
# )
|
141 |
btn = gr.Button("Generate image", scale=0)
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
with gr.Row():
|
144 |
with gr.Column(min_width=256) as c2:
|
145 |
image_2 = gr.Image(interactive=False)
|
|
|
100 |
with gr.Row():
|
101 |
sd_options = gr.Dropdown(['SD1.4', 'SD1.5', 'SD2.1'], value='SD1.4', label="SD options")
|
102 |
|
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 |
+
|
112 |
|
113 |
|
114 |
with gr.Row():
|
115 |
with gr.Group():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
btn = gr.Button("Generate image", scale=0)
|
|
|
117 |
with gr.Row():
|
118 |
with gr.Column(min_width=256) as c1:
|
119 |
image_1 = gr.Image(interactive=False)
|
120 |
image_1_label = gr.Markdown("SD")
|
121 |
|
122 |
with gr.Group():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
btn = gr.Button("Generate image", scale=0)
|
124 |
+
|
125 |
+
with gr.Accordion('FreeU Parameters', open=False):
|
126 |
+
b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
|
127 |
+
minimum=1,
|
128 |
+
maximum=1.6,
|
129 |
+
step=0.1,
|
130 |
+
value=1)
|
131 |
+
b2 = gr.Slider(label='b2: backbone factor of the second stage block of decoder',
|
132 |
+
minimum=1,
|
133 |
+
maximum=1.6,
|
134 |
+
step=0.1,
|
135 |
+
value=1)
|
136 |
+
s1 = gr.Slider(label='s1: skip factor of the first stage block of decoder',
|
137 |
+
minimum=0,
|
138 |
+
maximum=1,
|
139 |
+
step=0.1,
|
140 |
+
value=1)
|
141 |
+
s2 = gr.Slider(label='s2: skip factor of the second stage block of decoder',
|
142 |
+
minimum=0,
|
143 |
+
maximum=1,
|
144 |
+
step=0.1,
|
145 |
+
value=1)
|
146 |
with gr.Row():
|
147 |
with gr.Column(min_width=256) as c2:
|
148 |
image_2 = gr.Image(interactive=False)
|