patrickvonplaten commited on
Commit
ac91a8f
1 Parent(s): 9fd248b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +85 -85
app.py CHANGED
@@ -260,91 +260,91 @@ model: https://huggingface.co/DionTimmer/controlnet_qrcode-control_v1p_sd15
260
  outputs=[result_image],
261
  )
262
 
263
- gr.Examples(
264
- examples=[
265
- [
266
- "https://huggingface.co/",
267
- "A sky view of a colorful lakes and rivers flowing through the desert",
268
- "ugly, disfigured, low quality, blurry, nsfw",
269
- 7.5,
270
- 1.3,
271
- 0.9,
272
- 5392011833,
273
- None,
274
- None,
275
- True,
276
- "DPM++ Karras SDE",
277
- ],
278
- [
279
- "https://huggingface.co/spaces/huggingface-projects/QR-code-AI-art-generator",
280
- "billboard amidst the bustling skyline of New York City, with iconic landmarks subtly featured in the background.",
281
- "ugly, disfigured, low quality, blurry, nsfw",
282
- 13.37,
283
- 2.81,
284
- 0.68,
285
- 2313123,
286
- "./examples/hack.png",
287
- "./examples/hack.png",
288
- False,
289
- "DDIM",
290
- ],
291
- [
292
- "https://huggingface.co/spaces/huggingface-projects/QR-code-AI-art-generator",
293
- "beautiful sunset in San Francisco with Golden Gate bridge in the background",
294
- "ugly, disfigured, low quality, blurry, nsfw",
295
- 11.01,
296
- 2.61,
297
- 0.66,
298
- 1423585430,
299
- "./examples/hack.png",
300
- "./examples/hack.png",
301
- False,
302
- "DDIM",
303
- ],
304
- [
305
- "https://huggingface.co",
306
- "A flying cat over a jungle",
307
- "ugly, disfigured, low quality, blurry, nsfw",
308
- 13,
309
- 2.81,
310
- 0.66,
311
- 2702246671,
312
- "./examples/hack.png",
313
- "./examples/hack.png",
314
- False,
315
- "DDIM",
316
- ],
317
- [
318
- "",
319
- "crisp QR code prominently displayed on a billboard amidst the bustling skyline of New York City, with iconic landmarks subtly featured in the background.",
320
- "ugly, disfigured, low quality, blurry, nsfw",
321
- 10.0,
322
- 2.0,
323
- 0.8,
324
- 2313123,
325
- "./examples/init.jpeg",
326
- "./examples/qrcode.png",
327
- False,
328
- "DDIM",
329
- ],
330
- ],
331
- fn=inference,
332
- inputs=[
333
- qr_code_content,
334
- prompt,
335
- negative_prompt,
336
- guidance_scale,
337
- controlnet_conditioning_scale,
338
- strength,
339
- seed,
340
- init_image,
341
- qr_code_image,
342
- use_qr_code_as_init_image,
343
- sampler,
344
- ],
345
- outputs=[result_image],
346
- cache_examples=True,
347
- )
348
 
349
  blocks.queue(concurrency_count=1, max_size=20)
350
  blocks.launch(share=True)
 
260
  outputs=[result_image],
261
  )
262
 
263
+ # gr.Examples(
264
+ # examples=[
265
+ # [
266
+ # "https://huggingface.co/",
267
+ # "A sky view of a colorful lakes and rivers flowing through the desert",
268
+ # "ugly, disfigured, low quality, blurry, nsfw",
269
+ # 7.5,
270
+ # 1.3,
271
+ # 0.9,
272
+ # 5392011833,
273
+ # None,
274
+ # None,
275
+ # True,
276
+ # "DPM++ Karras SDE",
277
+ # ],
278
+ # [
279
+ # "https://huggingface.co/spaces/huggingface-projects/QR-code-AI-art-generator",
280
+ # "billboard amidst the bustling skyline of New York City, with iconic landmarks subtly featured in the background.",
281
+ # "ugly, disfigured, low quality, blurry, nsfw",
282
+ # 13.37,
283
+ # 2.81,
284
+ # 0.68,
285
+ # 2313123,
286
+ # "./examples/hack.png",
287
+ # "./examples/hack.png",
288
+ # False,
289
+ # "DDIM",
290
+ # ],
291
+ # [
292
+ # "https://huggingface.co/spaces/huggingface-projects/QR-code-AI-art-generator",
293
+ # "beautiful sunset in San Francisco with Golden Gate bridge in the background",
294
+ # "ugly, disfigured, low quality, blurry, nsfw",
295
+ # 11.01,
296
+ # 2.61,
297
+ # 0.66,
298
+ # 1423585430,
299
+ # "./examples/hack.png",
300
+ # "./examples/hack.png",
301
+ # False,
302
+ # "DDIM",
303
+ # ],
304
+ # [
305
+ # "https://huggingface.co",
306
+ # "A flying cat over a jungle",
307
+ # "ugly, disfigured, low quality, blurry, nsfw",
308
+ # 13,
309
+ # 2.81,
310
+ # 0.66,
311
+ # 2702246671,
312
+ # "./examples/hack.png",
313
+ # "./examples/hack.png",
314
+ # False,
315
+ # "DDIM",
316
+ # ],
317
+ # [
318
+ # "",
319
+ # "crisp QR code prominently displayed on a billboard amidst the bustling skyline of New York City, with iconic landmarks subtly featured in the background.",
320
+ # "ugly, disfigured, low quality, blurry, nsfw",
321
+ # 10.0,
322
+ # 2.0,
323
+ # 0.8,
324
+ # 2313123,
325
+ # "./examples/init.jpeg",
326
+ # "./examples/qrcode.png",
327
+ # False,
328
+ # "DDIM",
329
+ # ],
330
+ # ],
331
+ # fn=inference,
332
+ # inputs=[
333
+ # qr_code_content,
334
+ # prompt,
335
+ # negative_prompt,
336
+ # guidance_scale,
337
+ # controlnet_conditioning_scale,
338
+ # strength,
339
+ # seed,
340
+ # init_image,
341
+ # qr_code_image,
342
+ # use_qr_code_as_init_image,
343
+ # sampler,
344
+ # ],
345
+ # outputs=[result_image],
346
+ # cache_examples=True,
347
+ # )
348
 
349
  blocks.queue(concurrency_count=1, max_size=20)
350
  blocks.launch(share=True)