Spaces:
Runtime error
Runtime error
Commit
Β·
0cbffa0
1
Parent(s):
1011026
Added placeholder tabs and textual inversion link tab
Browse files
app.py
CHANGED
@@ -422,10 +422,98 @@ with gr.Blocks() as noise_steps:
|
|
422 |
# output_text = gr.Text(elem_id="output-text")
|
423 |
# go_button.click(fn=simple_image_prompt, inputs=[prompt, dropdown], outputs=[output, output_text])
|
424 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
|
426 |
|
427 |
# -----------------------------------------------------------------------------------------------
|
428 |
|
429 |
|
430 |
-
tabbed_interface = gr.TabbedInterface([new_welcome, dropdown_tab, beta, noise_steps], ["Welcome!", "Advanced Prompting", "Beta Concepts", "Noise Steps"])
|
431 |
tabbed_interface.launch()
|
|
|
422 |
# output_text = gr.Text(elem_id="output-text")
|
423 |
# go_button.click(fn=simple_image_prompt, inputs=[prompt, dropdown], outputs=[output, output_text])
|
424 |
|
425 |
+
|
426 |
+
|
427 |
+
# -----------------------------------------------------------------------------------------------
|
428 |
+
|
429 |
+
# ~~~ Depth Map TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
430 |
+
|
431 |
+
|
432 |
+
with gr.Blocks() as depth_map:
|
433 |
+
gr.Markdown('''
|
434 |
+
# π§βπ Depth Map Processor
|
435 |
+
|
436 |
+
This tool desn't exist yet!
|
437 |
+
|
438 |
+
When it's built it will let you input any image from your phone or computer and process it into a depth map image using a Stable Diffusion control net process.
|
439 |
+
|
440 |
+
Hopefully it'll be working soon. Check out the example below for now!
|
441 |
+
|
442 |
+

|
443 |
+

|
444 |
+
''')
|
445 |
+
|
446 |
+
|
447 |
+
|
448 |
+
# -----------------------------------------------------------------------------------------------
|
449 |
+
|
450 |
+
# ~~~ Control Net TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
451 |
+
|
452 |
+
|
453 |
+
with gr.Blocks() as control_net:
|
454 |
+
gr.Markdown('''
|
455 |
+
# π§βπ Control Net Processor
|
456 |
+
|
457 |
+
This tool desn't exist yet!
|
458 |
+
|
459 |
+
When it's built it will let you input any image from your phone or computer and process it using any text prompt or combination of trained artist styles / concepts.
|
460 |
+
|
461 |
+
Coming soon! If you want to play with normal control net without ahx artist concepts check out the link below.
|
462 |
+
|
463 |
+
[control net](https://huggingface.co/spaces/hysts/ControlNet)
|
464 |
+
''')
|
465 |
+
|
466 |
+
|
467 |
+
|
468 |
+
# -----------------------------------------------------------------------------------------------
|
469 |
+
|
470 |
+
# ~~~ TEXTUAL INVERSION TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
471 |
+
|
472 |
+
|
473 |
+
with gr.Blocks() as inversion:
|
474 |
+
gr.Markdown('''
|
475 |
+
# π§βπ Concept Trainer
|
476 |
+
|
477 |
+
This tool lets you train your own new models / concepts from any images you want that will appear automatically be added to the Beta Concepts and Advanced Prompting tabs!
|
478 |
+
|
479 |
+
For now the tool lives on Google Colab, which is Google's free tool for using their GPU's. Someday it might live here on our Hugging Face Space, but the process is a little too demanding for our current resources.
|
480 |
+
|
481 |
+
To train your own concept visit the link below and follow the instructions and be prepared to wait several hours.
|
482 |
+
|
483 |
+
[textual inversion training tool](https://colab.research.google.com/drive/1FhOpcEjHT7EN53Zv9MFLQTytZp11wjqg#forceEdit=true&sandboxMode=true&scrollTo=ZajfEoWHKAr3)
|
484 |
+
|
485 |
+
---
|
486 |
+
|
487 |
+
Note that you will need a access_token to run this. You can request this on our discord or get your own free one at the link below.
|
488 |
+
|
489 |
+
[hugging face access token](https://huggingface.co/docs/hub/security-tokens)
|
490 |
+
''')
|
491 |
+
|
492 |
+
|
493 |
+
|
494 |
+
# -----------------------------------------------------------------------------------------------
|
495 |
+
|
496 |
+
# ~~~ DREAM BOOTH TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
497 |
+
|
498 |
+
|
499 |
+
with gr.Blocks() as dream_booth:
|
500 |
+
gr.Markdown('''
|
501 |
+
# π§βπ Dream Booth Concept Trainer
|
502 |
+
|
503 |
+
This tool desn't exist yet!
|
504 |
+
|
505 |
+
When it's built it will let you input any image from your phone or computer and process it using any text prompt or combination of trained artist styles / concepts.
|
506 |
+
|
507 |
+
Coming soon! If you want to play with normal control net without ahx artist concepts check out the link below.
|
508 |
+
|
509 |
+
[control net](https://huggingface.co/spaces/hysts/ControlNet)
|
510 |
+
''')
|
511 |
+
|
512 |
+
|
513 |
|
514 |
|
515 |
# -----------------------------------------------------------------------------------------------
|
516 |
|
517 |
|
518 |
+
tabbed_interface = gr.TabbedInterface([new_welcome, dropdown_tab, beta, inversion, noise_steps, depth_map, control_net, dream_booth], ["Welcome!", "Advanced Prompting", "Beta Concepts", "Concept Trainer", "Noise Steps", "Depth Map", "Control Net", "Dream Booth"])
|
519 |
tabbed_interface.launch()
|