Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Commit
•
cc910da
1
Parent(s):
4c5854e
Update app.py
Browse filesModify examples list to include other inputs
app.py
CHANGED
@@ -137,8 +137,41 @@ with block:
|
|
137 |
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
138 |
ips = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold]
|
139 |
run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
|
140 |
-
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
|
144 |
block.launch(debug = True)
|
|
|
137 |
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
138 |
ips = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold]
|
139 |
run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
|
140 |
+
examples_list = [
|
141 |
+
[
|
142 |
+
"bird.png",
|
143 |
+
"bird",
|
144 |
+
"Canny Edge Map",
|
145 |
+
"best quality, extremely detailed",
|
146 |
+
'longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality'
|
147 |
+
1,
|
148 |
+
512,
|
149 |
+
20,
|
150 |
+
9.0,
|
151 |
+
123490213,
|
152 |
+
0.0,
|
153 |
+
100,
|
154 |
+
200
|
155 |
+
|
156 |
+
],
|
157 |
+
[
|
158 |
+
"turtle.png",
|
159 |
+
"turtle",
|
160 |
+
"Scribble",
|
161 |
+
"best quality, extremely detailed",
|
162 |
+
'longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality'
|
163 |
+
1,
|
164 |
+
512,
|
165 |
+
20,
|
166 |
+
9.0,
|
167 |
+
123490213,
|
168 |
+
0.0,
|
169 |
+
100,
|
170 |
+
200
|
171 |
+
|
172 |
+
]
|
173 |
+
]
|
174 |
+
examples = gr.Examples(examples=examples_list,inputs = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold], outputs = [result_gallery], cache_examples = True, fn = process)
|
175 |
+
examples.dataset.headers = [""]
|
176 |
|
177 |
block.launch(debug = True)
|