pengdaqian commited on
Commit
9dccf54
1 Parent(s): ea46a22
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +44 -44
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Stable Diffusion 2-1
3
  emoji: 🔥
4
  colorFrom: yellow
5
  colorTo: gray
 
1
  ---
2
+ title: do5013
3
  emoji: 🔥
4
  colorFrom: yellow
5
  colorTo: gray
app.py CHANGED
@@ -350,53 +350,53 @@ with block:
350
  Also Change params to have a try <br />
351
  more size may cost more time. <br />
352
  It's just a simplified demo, you can use more advanced features optimize image quality <br />"""
353
- tutorial_link = "https://docs.cworld.ai"
354
 
355
  gr.HTML(
356
  f"""
357
- <div style="text-align: center; margin: 0 auto;">
358
- <a href="https://cworld.ai">
359
- <svg style="margin: 0 auto;" width="155" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 407 100">
360
- <g id="SvgjsG2746"
361
- transform="matrix(0.8454106280193237,0,0,0.8454106280193237,-4.2270531400966185,-4.2270531400966185)"
362
- fill="#111">
363
- <g xmlns="http://www.w3.org/2000/svg">
364
- <g>
365
- <g>
366
- <path d="M50,11c21.5,0,39,17.5,39,39S71.5,89,50,89S11,71.5,11,50S28.5,11,50,11 M50,5C25.1,5,5,25.1,5,50s20.1,45,45,45 s45-20.1,45-45S74.9,5,50,5L50,5z"></path>
 
 
 
 
 
367
  </g>
368
- </g>
369
- <path d="M55,75H45v-5c0-2.8,2.2-5,5-5h0c2.8,0,5,2.2,5,5V75z"></path>
370
- <rect x="25" y="35" width="10" height="20"></rect>
371
- <rect x="65" y="35" width="10" height="20"></rect>
372
- </g>
373
- </g>
374
- <g id="SvgjsG2747"
375
- transform="matrix(3.3650250410766605,0,0,3.3650250410766605,93.98098208712985,-3.546415304677616)"
376
- fill="#111">
377
- <path
378
- d="M8.1 17.42 l1.42 1.28 c-0.94 1.04 -2.28 1.5 -3.78 1.5 c-2.84 0 -5.14 -2.18 -5.14 -5.12 s2.3 -5.14 5.14 -5.14 c1.5 0 2.84 0.46 3.78 1.5 l-1.42 1.28 c-0.58 -0.78 -1.42 -1.08 -2.36 -1.08 c-1.7 0 -3.08 1.42 -3.08 3.44 c0 2 1.38 3.44 3.08 3.44 c0.94 0 1.78 -0.3 2.36 -1.1 z M23.42 10.12 l2.06 0 l-3.76 9.88 l-1.26 0 l-2.46 -6.4 l-2.44 6.4 l-1.26 0 l-3.78 -9.88 l2.08 0 l2.34 6.9 l2.06 -6.08 l0.26 -0.82 l1.48 0 l0.28 0.82 l2.06 6.08 z M31.62 11.64 c-1.7 0 -3.08 1.42 -3.08 3.44 c0 2 1.38 3.44 3.08 3.44 s3.08 -1.44 3.08 -3.44 c0 -2.02 -1.38 -3.44 -3.08 -3.44 z M31.62 9.94 c2.84 0 5.14 2.2 5.14 5.14 s-2.3 5.12 -5.14 5.12 s-5.14 -2.18 -5.14 -5.12 s2.3 -5.14 5.14 -5.14 z M44.9 10.24 l-0.44 1.62 c-0.14 -0.08 -0.58 -0.22 -0.94 -0.22 c-1.7 0 -2.5 1.62 -2.5 3.62 l0 4.74 l-2.06 0 l0 -9.88 l2.06 0 l0 1.4 c0.24 -0.92 1.3 -1.58 2.48 -1.58 c0.54 0 1.12 0.14 1.4 0.3 z M48.379999999999995 4.619999999999999 l0 15.38 l-2.08 0 l0 -15.38 l2.08 0 z M50.98 15.08 c0 -2.94 2.1 -5.14 4.94 -5.14 c0.98 0 2.18 0.42 2.84 0.96 l0 -5.9 l2.08 0 l0 15 l-2.08 0 l0 -0.74 c-0.78 0.58 -1.86 0.94 -2.84 0.94 c-2.84 0 -4.94 -2.18 -4.94 -5.12 z M53.06 15.08 c0 2 1.38 3.44 3.06 3.44 c1.12 0 2.12 -0.52 2.64 -1.58 c0.28 -0.54 0.44 -1.18 0.44 -1.86 s-0.16 -1.32 -0.44 -1.88 c-0.52 -1.06 -1.52 -1.56 -2.64 -1.56 c-1.68 0 -3.06 1.42 -3.06 3.44 z M66.46 18.78 c0 0.8 -0.62 1.42 -1.42 1.42 c-0.78 0 -1.4 -0.62 -1.4 -1.42 c0 -0.76 0.62 -1.38 1.4 -1.38 c0.8 0 1.42 0.62 1.42 1.38 z M73.08 9.92 c2.84 0 3.98 1.72 3.98 3.18 l0 6.9 l-2.06 0 l0 -1.08 c-0.72 0.98 -2 1.26 -2.8 1.26 c-2.26 0 -3.74 -1.32 -3.74 -3.08 c0 -2.46 1.84 -3.34 3.74 -3.34 l2.8 0 l0 -0.66 c0 -0.62 -0.24 -1.48 -1.92 -1.48 c-0.94 0 -1.8 0.5 -2.36 1.28 l-1.42 -1.28 c0.94 -1.04 2.28 -1.7 3.78 -1.7 z M75 16.92 l0 -1.48 l-2.52 0 c-1.22 0 -2.08 0.62 -1.94 1.74 c0.12 0.94 0.88 1.32 1.94 1.32 c1.9 0 2.52 -0.9 2.52 -1.58 z M81.9 10.12 l0 9.88 l-2.06 0 l0 -9.88 l2.06 0 z M82 6.5 c0 0.64 -0.5 1.14 -1.14 1.14 c-0.62 0 -1.12 -0.5 -1.12 -1.14 c0 -0.62 0.5 -1.12 1.12 -1.12 c0.64 0 1.14 0.5 1.14 1.12 z"></path>
379
- </g>
380
- </svg>
381
- </a>
382
- <div
383
- style="
384
- display: inline-flex;
385
- align-items: center;
386
- gap: 0.8rem;
387
- font-size: 1.75rem;
388
- "
389
- >
390
- <h1 style="font-weight: 900; margin-bottom: 7px;margin-top:5px">
391
- {title}
392
- </h1>
393
- </div>
394
- <p style="margin-bottom: 10px; font-size: 94%; line-height: 23px;">
395
- {desc}
396
- There is the <a href="{tutorial_link}"> tutorial </a>
397
- </p>
398
- </div>
399
- """
400
  )
401
  with gr.Group():
402
  with gr.Box():
@@ -438,7 +438,7 @@ with block:
438
  label="Sampler",
439
  info="sampler select"
440
  )
441
- steps = gr.Slider(minimum=1, maximum=80, step=1, elem_id=f"steps", label="Sampling steps",
442
  value=20)
443
 
444
  with gr.Accordion("Advanced settings", open=False):
 
350
  Also Change params to have a try <br />
351
  more size may cost more time. <br />
352
  It's just a simplified demo, you can use more advanced features optimize image quality <br />"""
353
+ tutorial_link = "https://docs.cworld.ai/docs/cworld-ai/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B/stable-diffusion/"
354
 
355
  gr.HTML(
356
  f"""
357
+ <div style="text-align: center; margin: 0 auto;">
358
+ <a href="https://cworld.ai">
359
+ <svg style="margin: 0 auto;" width="155" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 407 100">
360
+ <g id="SvgjsG2746"
361
+ transform="matrix(0.8454106280193237,0,0,0.8454106280193237,-4.2270531400966185,-4.2270531400966185)"
362
+ fill="#111">
363
+ <g xmlns="http://www.w3.org/2000/svg">
364
+ <g>
365
+ <g>
366
+ <path d="M50,11c21.5,0,39,17.5,39,39S71.5,89,50,89S11,71.5,11,50S28.5,11,50,11 M50,5C25.1,5,5,25.1,5,50s20.1,45,45,45 s45-20.1,45-45S74.9,5,50,5L50,5z"></path>
367
+ </g>
368
+ </g>
369
+ <path d="M55,75H45v-5c0-2.8,2.2-5,5-5h0c2.8,0,5,2.2,5,5V75z"></path>
370
+ <rect x="25" y="35" width="10" height="20"></rect>
371
+ <rect x="65" y="35" width="10" height="20"></rect>
372
  </g>
373
+ </g>
374
+ <g id="SvgjsG2747"
375
+ transform="matrix(3.3650250410766605,0,0,3.3650250410766605,93.98098208712985,-3.546415304677616)"
376
+ fill="#111">
377
+ <path
378
+ d="M8.1 17.42 l1.42 1.28 c-0.94 1.04 -2.28 1.5 -3.78 1.5 c-2.84 0 -5.14 -2.18 -5.14 -5.12 s2.3 -5.14 5.14 -5.14 c1.5 0 2.84 0.46 3.78 1.5 l-1.42 1.28 c-0.58 -0.78 -1.42 -1.08 -2.36 -1.08 c-1.7 0 -3.08 1.42 -3.08 3.44 c0 2 1.38 3.44 3.08 3.44 c0.94 0 1.78 -0.3 2.36 -1.1 z M23.42 10.12 l2.06 0 l-3.76 9.88 l-1.26 0 l-2.46 -6.4 l-2.44 6.4 l-1.26 0 l-3.78 -9.88 l2.08 0 l2.34 6.9 l2.06 -6.08 l0.26 -0.82 l1.48 0 l0.28 0.82 l2.06 6.08 z M31.62 11.64 c-1.7 0 -3.08 1.42 -3.08 3.44 c0 2 1.38 3.44 3.08 3.44 s3.08 -1.44 3.08 -3.44 c0 -2.02 -1.38 -3.44 -3.08 -3.44 z M31.62 9.94 c2.84 0 5.14 2.2 5.14 5.14 s-2.3 5.12 -5.14 5.12 s-5.14 -2.18 -5.14 -5.12 s2.3 -5.14 5.14 -5.14 z M44.9 10.24 l-0.44 1.62 c-0.14 -0.08 -0.58 -0.22 -0.94 -0.22 c-1.7 0 -2.5 1.62 -2.5 3.62 l0 4.74 l-2.06 0 l0 -9.88 l2.06 0 l0 1.4 c0.24 -0.92 1.3 -1.58 2.48 -1.58 c0.54 0 1.12 0.14 1.4 0.3 z M48.379999999999995 4.619999999999999 l0 15.38 l-2.08 0 l0 -15.38 l2.08 0 z M50.98 15.08 c0 -2.94 2.1 -5.14 4.94 -5.14 c0.98 0 2.18 0.42 2.84 0.96 l0 -5.9 l2.08 0 l0 15 l-2.08 0 l0 -0.74 c-0.78 0.58 -1.86 0.94 -2.84 0.94 c-2.84 0 -4.94 -2.18 -4.94 -5.12 z M53.06 15.08 c0 2 1.38 3.44 3.06 3.44 c1.12 0 2.12 -0.52 2.64 -1.58 c0.28 -0.54 0.44 -1.18 0.44 -1.86 s-0.16 -1.32 -0.44 -1.88 c-0.52 -1.06 -1.52 -1.56 -2.64 -1.56 c-1.68 0 -3.06 1.42 -3.06 3.44 z M66.46 18.78 c0 0.8 -0.62 1.42 -1.42 1.42 c-0.78 0 -1.4 -0.62 -1.4 -1.42 c0 -0.76 0.62 -1.38 1.4 -1.38 c0.8 0 1.42 0.62 1.42 1.38 z M73.08 9.92 c2.84 0 3.98 1.72 3.98 3.18 l0 6.9 l-2.06 0 l0 -1.08 c-0.72 0.98 -2 1.26 -2.8 1.26 c-2.26 0 -3.74 -1.32 -3.74 -3.08 c0 -2.46 1.84 -3.34 3.74 -3.34 l2.8 0 l0 -0.66 c0 -0.62 -0.24 -1.48 -1.92 -1.48 c-0.94 0 -1.8 0.5 -2.36 1.28 l-1.42 -1.28 c0.94 -1.04 2.28 -1.7 3.78 -1.7 z M75 16.92 l0 -1.48 l-2.52 0 c-1.22 0 -2.08 0.62 -1.94 1.74 c0.12 0.94 0.88 1.32 1.94 1.32 c1.9 0 2.52 -0.9 2.52 -1.58 z M81.9 10.12 l0 9.88 l-2.06 0 l0 -9.88 l2.06 0 z M82 6.5 c0 0.64 -0.5 1.14 -1.14 1.14 c-0.62 0 -1.12 -0.5 -1.12 -1.14 c0 -0.62 0.5 -1.12 1.12 -1.12 c0.64 0 1.14 0.5 1.14 1.12 z"></path>
379
+ </g>
380
+ </svg>
381
+ </a>
382
+ <div
383
+ style="
384
+ display: inline-flex;
385
+ align-items: center;
386
+ gap: 0.8rem;
387
+ font-size: 1.75rem;
388
+ "
389
+ >
390
+ <h1 style="font-weight: 900; margin-bottom: 7px;margin-top:5px">
391
+ {title}
392
+ </h1>
393
+ </div>
394
+ <p style="margin-bottom: 10px; font-size: 94%; line-height: 23px;">
395
+ {desc}
396
+ There is the <a href="{tutorial_link}"> tutorial </a>
397
+ </p>
398
+ </div>
399
+ """
 
 
 
 
 
400
  )
401
  with gr.Group():
402
  with gr.Box():
 
438
  label="Sampler",
439
  info="sampler select"
440
  )
441
+ steps = gr.Slider(minimum=1, maximum=50, step=1, elem_id=f"steps", label="Sampling steps",
442
  value=20)
443
 
444
  with gr.Accordion("Advanced settings", open=False):