Update app-backup.py
Browse files- app-backup.py +26 -14
app-backup.py
CHANGED
@@ -19,7 +19,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
19 |
# STABLE DIFFUSION XL PIPELINE
|
20 |
# ------------------------------------------------------------
|
21 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
22 |
-
"
|
23 |
torch_dtype=torch.float16,
|
24 |
variant="fp16",
|
25 |
use_safetensors=True,
|
@@ -576,29 +576,42 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
576 |
with gr.Group(elem_classes="model-description"):
|
577 |
gr.HTML("""
|
578 |
<p>
|
579 |
-
<strong>
|
580 |
</p>
|
581 |
<div style="display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; margin-bottom: 20px;">
|
582 |
-
|
583 |
-
|
|
|
584 |
</a>
|
585 |
-
<a href="https://huggingface.co/spaces/Heartsync/NSFW-Uncensored-
|
586 |
-
<img src="https://img.shields.io/static/v1?label=Text%20to%20Image%
|
|
|
|
|
|
|
587 |
</a>
|
588 |
-
<a href="https://huggingface.co/spaces/Heartsync/
|
589 |
-
<img src="https://img.shields.io/static/v1?label=
|
|
|
|
|
|
|
|
|
590 |
</a>
|
|
|
|
|
|
|
|
|
591 |
<a href="https://huggingface.co/spaces/Heartsync/NSFW-Uncensored-video2" target="_blank">
|
592 |
-
<img src="https://img.shields.io/static/v1?label=Image%20to%20Video
|
593 |
</a>
|
594 |
-
<a href="https://huggingface.co/spaces/Heartsync/
|
595 |
-
<img src="https://img.shields.io/static/v1?label=Text%20to%20Image%
|
596 |
</a>
|
|
|
597 |
</div>
|
598 |
<p>
|
599 |
<small style="opacity: 0.8;">High-quality image generation powered by StableDiffusionXL with video generation capability. Supports long prompts and various artistic styles.</small>
|
600 |
</p>
|
601 |
-
""")
|
602 |
|
603 |
# Create state variables to store the current image
|
604 |
current_image = gr.State(None)
|
@@ -612,9 +625,8 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
612 |
show_label=True,
|
613 |
max_lines=1,
|
614 |
placeholder="Enter a keyword or theme in any language to generate an optimal prompt",
|
615 |
-
value="random"
|
616 |
)
|
617 |
-
|
618 |
boost_button = gr.Button("BOOST", elem_classes=["boost-btn"])
|
619 |
random_button = gr.Button("RANDOM", elem_classes=["random-btn"])
|
620 |
|
|
|
19 |
# STABLE DIFFUSION XL PIPELINE
|
20 |
# ------------------------------------------------------------
|
21 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
22 |
+
"votepurchase/waiREALCN_v14",
|
23 |
torch_dtype=torch.float16,
|
24 |
variant="fp16",
|
25 |
use_safetensors=True,
|
|
|
576 |
with gr.Group(elem_classes="model-description"):
|
577 |
gr.HTML("""
|
578 |
<p>
|
579 |
+
<strong>Models Use cases: </strong><br>
|
580 |
</p>
|
581 |
<div style="display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; margin-bottom: 20px;">
|
582 |
+
|
583 |
+
<a href="https://huggingface.co/spaces/Heartsync/FREE-NSFW-HUB" target="_blank">
|
584 |
+
<img src="https://img.shields.io/static/v1?label=huggingface&message=FREE%20NSFW%20HUB&color=%230000ff&labelColor=%23800080&logo=huggingface&logoColor=%23ffa500&style=for-the-badge" alt="badge">
|
585 |
</a>
|
586 |
+
<a href="https://huggingface.co/spaces/Heartsync/NSFW-Uncensored-Real" target="_blank">
|
587 |
+
<img src="https://img.shields.io/static/v1?label=Text%20to%20Image%28Real%29&message=NSFW%20Uncensored&color=%230000ff&labelColor=%23800080&logo=Huggingface&logoColor=%23ffa500&style=for-the-badge" alt="badge">
|
588 |
+
</a>
|
589 |
+
<a href="https://huggingface.co/spaces/Heartsync/Novel-NSFW" target="_blank">
|
590 |
+
<img src="https://img.shields.io/static/v1?label=NOVEL%20GENERATOR&message=NSFW%20Uncensored&color=%23ffc0cb&labelColor=%23ffff00&logo=huggingface&logoColor=%23ffa500&style=for-the-badge" alt="badge">
|
591 |
</a>
|
592 |
+
<a href="https://huggingface.co/spaces/Heartsync/adult" target="_blank">
|
593 |
+
<img src="https://img.shields.io/static/v1?label=Text%20to%20Image%20to%20Video&message=ADULT&color=%23ff00ff&labelColor=%23000080&logo=Huggingface&logoColor=%23ffa500&style=for-the-badge" alt="badge">
|
594 |
+
</a>
|
595 |
+
|
596 |
+
<a href="https://huggingface.co/spaces/Heartsync/wan2-1-fast-security" target="_blank">
|
597 |
+
<img src="https://img.shields.io/static/v1?label=Image%20to%20Video&message=Wan%202.1%20I2V%20Fast&color=%23ffa500&labelColor=%23000080&logo=huggingface&logoColor=white&style=for-the-badge" alt="badge">
|
598 |
</a>
|
599 |
+
|
600 |
+
<a href="https://huggingface.co/spaces/Heartsync/NSFW-Uncensored-video" target="_blank">
|
601 |
+
<img src="https://img.shields.io/static/v1?label=Image%20to%20Video&message=NSFW%20Uncensored&color=%230000ff&labelColor=%23800080&logo=Huggingface&logoColor=%23ffa500&style=for-the-badge" alt="badge">
|
602 |
+
</a>
|
603 |
<a href="https://huggingface.co/spaces/Heartsync/NSFW-Uncensored-video2" target="_blank">
|
604 |
+
<img src="https://img.shields.io/static/v1?label=Image%20to%20Video(Mirror)&message=NSFW%20Uncensored&color=%230000ff&labelColor=%23800080&logo=Huggingface&logoColor=%23ffa500&style=for-the-badge" alt="badge">
|
605 |
</a>
|
606 |
+
<a href="https://huggingface.co/spaces/Heartsync/NSFW-Uncensored" target="_blank">
|
607 |
+
<img src="https://img.shields.io/static/v1?label=Text%20to%20Image%28Anime%29&message=NSFW%20Uncensored&color=%230000ff&labelColor=%23800080&logo=Huggingface&logoColor=%23ffa500&style=for-the-badge" alt="badge">
|
608 |
</a>
|
609 |
+
|
610 |
</div>
|
611 |
<p>
|
612 |
<small style="opacity: 0.8;">High-quality image generation powered by StableDiffusionXL with video generation capability. Supports long prompts and various artistic styles.</small>
|
613 |
</p>
|
614 |
+
""")
|
615 |
|
616 |
# Create state variables to store the current image
|
617 |
current_image = gr.State(None)
|
|
|
625 |
show_label=True,
|
626 |
max_lines=1,
|
627 |
placeholder="Enter a keyword or theme in any language to generate an optimal prompt",
|
628 |
+
value="random",
|
629 |
)
|
|
|
630 |
boost_button = gr.Button("BOOST", elem_classes=["boost-btn"])
|
631 |
random_button = gr.Button("RANDOM", elem_classes=["random-btn"])
|
632 |
|