Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ if not os.path.exists(SAVE_DIR):
|
|
16 |
|
17 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
18 |
repo_id = "black-forest-labs/FLUX.1-dev"
|
19 |
-
adapter_id = "
|
20 |
|
21 |
pipeline = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
|
22 |
pipeline.load_lora_weights(adapter_id)
|
@@ -90,17 +90,17 @@ def inference(
|
|
90 |
return image, seed, load_generated_images()
|
91 |
|
92 |
examples = [
|
93 |
-
"A fluffy white Persian
|
94 |
|
95 |
-
"An adorable orange tabby
|
96 |
|
97 |
-
"A playful black and white tuxedo
|
98 |
|
99 |
-
"A sleepy Scottish Fold
|
100 |
|
101 |
-
"A graceful Siamese ballet dancer
|
102 |
|
103 |
-
"A adventurous calico
|
104 |
]
|
105 |
|
106 |
css = """
|
@@ -110,9 +110,12 @@ footer {
|
|
110 |
"""
|
111 |
|
112 |
with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, analytics_enabled=False) as demo:
|
113 |
-
gr.HTML('<div class="title">
|
114 |
-
gr.HTML('<div class="title">😄Image to Video Explore: <a href="https://huggingface.co/spaces/ginigen/theater" target="_blank">https://huggingface.co/spaces/ginigen/theater</a></div>')
|
115 |
|
|
|
|
|
|
|
|
|
116 |
with gr.Tabs() as tabs:
|
117 |
with gr.Tab("Generation"):
|
118 |
with gr.Column(elem_id="col-container"):
|
|
|
16 |
|
17 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
18 |
repo_id = "black-forest-labs/FLUX.1-dev"
|
19 |
+
adapter_id = "openfree/korea-president-yoon"
|
20 |
|
21 |
pipeline = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
|
22 |
pipeline.load_lora_weights(adapter_id)
|
|
|
90 |
return image, seed, load_generated_images()
|
91 |
|
92 |
examples = [
|
93 |
+
"A fluffy white Persian man in a tiny royal hanbok, sitting regally on a velvet cushion. The cat wears a miniature golden crown and a silk hanbok in pastel pink and mint green. Its long fur is perfectly groomed, and it has bright blue eyes that sparkle with nobility. The background features traditional Korean palace decorations and cherry blossoms floating in the air. [president yoon]",
|
94 |
|
95 |
+
"An adorable orange tabby man as a master chef, wearing a white chef's hat and apron, standing on its hind legs at a tiny kitchen counter. The cat is delicately holding a miniature rolling pin, preparing cat-shaped cookies. The cozy kitchen background features tiny cooking utensils and a warm, golden afternoon light streaming through the window. [president yoon]",
|
96 |
|
97 |
+
"A playful black and white tuxedo man as a professional photographer, wearing tiny round glasses and a vintage camera around its neck. The cat is perfectly balanced on a tree branch, attempting to photograph a butterfly. It wears a cute brown leather camera bag and a mini beret, looking artistic and focused. [president yoon]",
|
98 |
|
99 |
+
"A sleepy Scottish Fold man in astronaut gear, floating inside a spaceship cabin. The cat wears a custom-fit space suit with cute patches, gently batting at floating star-shaped toys. Through the spaceship window, Earth and twinkling stars create a magical cosmic background. [president yoon]",
|
100 |
|
101 |
+
"A graceful Siamese ballet dancer man in a sparkly pink tutu, performing a perfect pirouette on a miniature stage. The cat wears tiny satin ballet slippers on its paws and a crystal tiara. The stage is lit with soft spotlights, and rose petals are scattered around its dancing feet. [president yoon]",
|
102 |
|
103 |
+
"A adventurous calico man explorer in safari gear, riding on top of a friendly elephant. The cat wears a tiny khaki vest with many pockets, a safari hat, and carries a miniature map. The background shows a beautiful sunset over the African savanna with acacia trees and colorful birds flying overhead. [president yoon]"
|
104 |
]
|
105 |
|
106 |
css = """
|
|
|
110 |
"""
|
111 |
|
112 |
with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, analytics_enabled=False) as demo:
|
113 |
+
gr.HTML('<div class="title"> President Yoon in KOREA </div>')
|
|
|
114 |
|
115 |
+
gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fginigen-Book-Cover.hf.space">
|
116 |
+
<img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fginigen-Book-Cover.hf.space&countColor=%23263759" />
|
117 |
+
</a>""")
|
118 |
+
|
119 |
with gr.Tabs() as tabs:
|
120 |
with gr.Tab("Generation"):
|
121 |
with gr.Column(elem_id="col-container"):
|