Thaweewat commited on
Commit
d59438d
1 Parent(s): 82cf90c

Remove example

Browse files
Files changed (1) hide show
  1. app.py +1 -53
app.py CHANGED
@@ -181,6 +181,7 @@ control_task_list = [
181
  "Scribble",
182
  "Pose"
183
  ]
 
184
  with block:
185
  gr.Markdown("## Adding Conditional Control to Text-to-Image Diffusion Models")
186
  gr.HTML('''
@@ -212,58 +213,5 @@ with block:
212
  result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
213
  ips = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold]
214
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
215
- examples_list = [
216
- [
217
- "bird.png",
218
- "bird",
219
- "Canny Edge Map",
220
- "best quality, extremely detailed",
221
- 'longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality',
222
- 1,
223
- 512,
224
- 20,
225
- 9.0,
226
- 123490213,
227
- 0.0,
228
- 100,
229
- 200
230
-
231
- ],
232
-
233
- [
234
- "turtle.png",
235
- "turtle",
236
- "Scribble",
237
- "best quality, extremely detailed",
238
- 'longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality',
239
- 1,
240
- 512,
241
- 20,
242
- 9.0,
243
- 123490213,
244
- 0.0,
245
- 100,
246
- 200
247
-
248
- ],
249
- [
250
- "pose1.png",
251
- "Chef in the Kitchen",
252
- "Pose",
253
- "best quality, extremely detailed",
254
- 'longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality',
255
- 1,
256
- 512,
257
- 20,
258
- 9.0,
259
- 123490213,
260
- 0.0,
261
- 100,
262
- 200
263
-
264
- ]
265
- ]
266
- 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)
267
- gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=RamAnanth1.ControlNet)")
268
 
269
  block.launch(debug = True)
 
181
  "Scribble",
182
  "Pose"
183
  ]
184
+
185
  with block:
186
  gr.Markdown("## Adding Conditional Control to Text-to-Image Diffusion Models")
187
  gr.HTML('''
 
213
  result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
214
  ips = [input_image, prompt, input_control, a_prompt, n_prompt, num_samples, image_resolution, ddim_steps, scale, seed, eta, low_threshold, high_threshold]
215
  run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
 
217
  block.launch(debug = True)