Shypanties22 commited on
Commit
f0a12c0
·
1 Parent(s): 4934def

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -15
app.py CHANGED
@@ -357,7 +357,6 @@ def check_status(top_description):
357
  Dreambooth Web UI
358
  </h1>
359
  <br />
360
- <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/MirageML/dreambooth?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
361
  </div>
362
  <br />
363
  <br />
@@ -377,7 +376,6 @@ def check_status(top_description):
377
  Dreambooth Web UI
378
  </h1>
379
  <br />
380
- <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/MirageML/dreambooth?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
381
  </div>
382
  <br />
383
  <br />
@@ -410,7 +408,6 @@ with gr.Blocks(css=css) as demo:
410
  top_description = gr.HTML(f'''
411
  <div class="gr-prose" style="max-width: 80%">
412
  <h2>Attention - This Space doesn't work in this shared UI</h2>
413
- <p>For it to work, you can either run locally or duplicate the Space and run it on your own profile using a (paid) private T4 GPU for training. As each T4 costs US$0.60/h, it should cost < US$1 to train most models using default settings!&nbsp;&nbsp;<a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/MirageML/dreambooth?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></p>
414
  <img class="instruction" src="file/duplicate.png">
415
  <img class="arrow" src="file/arrow.png" />
416
  </div>
@@ -420,60 +417,55 @@ with gr.Blocks(css=css) as demo:
420
  top_description = gr.HTML(f'''
421
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
422
  <div>
423
- <img class="logo" src="file/mirage.png" alt="Mirage Logo"
424
  style="margin: auto; max-width: 7rem;">
425
  <br />
426
  <h1 style="font-weight: 900; font-size: 2.5rem;">
427
  Dreambooth Web UI
428
  </h1>
429
  <br />
430
- <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/MirageML/dreambooth?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
431
  </div>
432
  <br />
433
  <br />
434
  <p style="margin-bottom: 10px; font-size: 94%">
435
- Customize Stable Diffusion v1 or v2 by giving it a few examples of a concept.
436
- Based on the <a href="https://github.com/huggingface/diffusers">diffusers</a> implementation, additional techniques from <a href="https://github.com/TheLastBen/diffusers">TheLastBen</a> and <a href="https://github.com/ShivamShrirao/diffusers">ShivamShrirao</a>"
437
  </p>
438
  <br />
439
- <p>There's only one step left before you can train your model: <a href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}/settings" style="text-decoration: underline" target="_blank">attribute a <b>T4 GPU</b> to it (via the Settings tab)</a> and run the training below. Other GPUs are not compatible for now. You will be billed by the minute from when you activate the GPU until when it is turned it off.</p>
440
  </div>
441
  ''')
442
  else:
443
  top_description = gr.HTML(f'''
444
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
445
  <div>
446
- <img class="logo" src="file/mirage.png" alt="Mirage Logo"
447
  style="margin: auto; max-width: 7rem;">
448
  <br />
449
  <h1 style="font-weight: 900; font-size: 2.5rem;">
450
  Dreambooth Web UI
451
  </h1>
452
  <br />
453
- <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/MirageML/dreambooth?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
454
  </div>
455
  <br />
456
  <br />
457
  <p style="margin-bottom: 10px; font-size: 94%">
458
- Customize Stable Diffusion v1 or v2 by giving it a few examples of a concept.
459
- Based on the <a href="https://github.com/huggingface/diffusers">diffusers</a> implementation, additional techniques from <a href="https://github.com/TheLastBen/diffusers">TheLastBen</a> and <a href="https://github.com/ShivamShrirao/diffusers">ShivamShrirao</a>"
460
  </p>
461
  <br />
462
- <p>There's only one step left before you can train your model: <a href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}/settings" style="text-decoration: underline" target="_blank">attribute a <b>T4 GPU</b> to it (via the Settings tab)</a> and run the training below. Other GPUs are not compatible for now. You will be billed by the minute from when you activate the GPU until when it is turned it off.</p>
463
  </div>
464
  ''')
465
  else:
466
  top_description = gr.HTML(f'''
467
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
468
  <div>
469
- <img class="logo" src="file/mirage.png" alt="Mirage Logo"
470
  style="margin: auto; max-width: 7rem;">
471
  <br />
472
  <h1 style="font-weight: 900; font-size: 2.5rem;">
473
  Dreambooth Web UI
474
  </h1>
475
  <br />
476
- <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/MirageML/dreambooth?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
477
  </div>
478
  <br />
479
  <br />
 
357
  Dreambooth Web UI
358
  </h1>
359
  <br />
 
360
  </div>
361
  <br />
362
  <br />
 
376
  Dreambooth Web UI
377
  </h1>
378
  <br />
 
379
  </div>
380
  <br />
381
  <br />
 
408
  top_description = gr.HTML(f'''
409
  <div class="gr-prose" style="max-width: 80%">
410
  <h2>Attention - This Space doesn't work in this shared UI</h2>
 
411
  <img class="instruction" src="file/duplicate.png">
412
  <img class="arrow" src="file/arrow.png" />
413
  </div>
 
417
  top_description = gr.HTML(f'''
418
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
419
  <div>
420
+ <img class="logo" src="file/max.png" alt="Mirage Logo"
421
  style="margin: auto; max-width: 7rem;">
422
  <br />
423
  <h1 style="font-weight: 900; font-size: 2.5rem;">
424
  Dreambooth Web UI
425
  </h1>
426
  <br />
 
427
  </div>
428
  <br />
429
  <br />
430
  <p style="margin-bottom: 10px; font-size: 94%">
431
+ What if we could imagine a version of ourselves that doesn’t necessarily adhere to society’s standards of beauty. Instead of fair skin, why not reimagine yourself in a green birthday suit? Rather than having boring human ears, why not don a pair of elf ears.
 
432
  </p>
433
  <br />
434
+ <p>FantasyMe is a simple tool where users can use state of the art A.I. stable diffusion models to make them look like their favourite fantasy character. Just provide a few sample images of your likeness and generate a library of images that are all Instagram profile worthy.</p>
435
  </div>
436
  ''')
437
  else:
438
  top_description = gr.HTML(f'''
439
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
440
  <div>
441
+ <img class="logo" src="file/max.png" alt="Mirage Logo"
442
  style="margin: auto; max-width: 7rem;">
443
  <br />
444
  <h1 style="font-weight: 900; font-size: 2.5rem;">
445
  Dreambooth Web UI
446
  </h1>
447
  <br />
 
448
  </div>
449
  <br />
450
  <br />
451
  <p style="margin-bottom: 10px; font-size: 94%">
452
+ What if we could imagine a version of ourselves that doesn’t necessarily adhere to society’s standards of beauty. Instead of fair skin, why not reimagine yourself in a green birthday suit? Rather than having boring human ears, why not don a pair of elf ears.
 
453
  </p>
454
  <br />
455
+ <p>FantasyMe is a simple tool where users can use state of the art A.I. stable diffusion models to make them look like their favourite fantasy character. Just provide a few sample images of your likeness and generate a library of images that are all Instagram profile worthy.</p>
456
  </div>
457
  ''')
458
  else:
459
  top_description = gr.HTML(f'''
460
  <div style="text-align: center; max-width: 650px; margin: 0 auto;">
461
  <div>
462
+ <img class="logo" src="file/max.png" alt="Mirage Logo"
463
  style="margin: auto; max-width: 7rem;">
464
  <br />
465
  <h1 style="font-weight: 900; font-size: 2.5rem;">
466
  Dreambooth Web UI
467
  </h1>
468
  <br />
 
469
  </div>
470
  <br />
471
  <br />