Spaces:
Running
on
Zero
Running
on
Zero
seawolf2357
commited on
Commit
•
10b5cd2
1
Parent(s):
b3d3ef3
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ if not os.path.exists(SAVE_DIR):
|
|
17 |
|
18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
19 |
repo_id = "black-forest-labs/FLUX.1-dev"
|
20 |
-
adapter_id = "flux-lora-korea-palace"
|
21 |
|
22 |
pipeline = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
|
23 |
pipeline.load_lora_weights(adapter_id)
|
@@ -91,17 +91,17 @@ def inference(
|
|
91 |
return image, seed, load_generated_images()
|
92 |
|
93 |
examples = [
|
94 |
-
"
|
95 |
|
96 |
-
"
|
97 |
|
98 |
-
"
|
99 |
|
100 |
-
"
|
101 |
|
102 |
-
"
|
103 |
|
104 |
-
"
|
105 |
]
|
106 |
|
107 |
css = """
|
|
|
17 |
|
18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
19 |
repo_id = "black-forest-labs/FLUX.1-dev"
|
20 |
+
adapter_id = "openfree/flux-lora-korea-palace"
|
21 |
|
22 |
pipeline = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
|
23 |
pipeline.load_lora_weights(adapter_id)
|
|
|
91 |
return image, seed, load_generated_images()
|
92 |
|
93 |
examples = [
|
94 |
+
"Geunjeongjeon Hall of Gyeongbokgung Palace in spring, with cherry blossoms in full bloom. The majestic throne hall stands proudly against a backdrop of pink petals, its vibrant dancheong colors harmonizing with the spring flowers. Traditional stone markers and carefully manicured royal gardens frame the scene, while Mount Bugaksan rises majestically in the background. [trigger]",
|
95 |
|
96 |
+
"Summer sunrise at Geunjeongjeon Hall, Gyeongbokgung Palace. The golden morning light illuminates the grand wooden pillars and intricate roof tiles. Royal court musicians in traditional hanbok are preparing for the morning ceremony on the courtyard's stone steps, while the hall's reflection shimmers in the morning dew. [trigger]",
|
97 |
|
98 |
+
"Autumn twilight at Geunjeongjeon Hall. The royal throne hall is surrounded by maple and ginkgo trees in brilliant red and gold. The traditional blue and red dancheong paintings contrast beautifully with the warm autumn colors, while palace lanterns begin to glow in the approaching dusk. [trigger]",
|
99 |
|
100 |
+
"Winter scene at Geunjeongjeon Hall, with heavy snow blanketing the palace grounds. The hall's majestic double-tiered roof stands out against the pure white landscape, its dragon carvings dusted with snow. Frozen lotus ponds and snow-covered stone bridges create a serene winter wonderland. [trigger]",
|
101 |
|
102 |
+
"Geunjeongjeon Hall during a traditional royal ceremony under the full moon. Palace guards in historical uniforms stand at attention as lantern light dances across the ancient wooden structures. The moonlight casts dramatic shadows of the throne hall's curved eaves onto the frost-covered courtyard. [trigger]",
|
103 |
|
104 |
+
"Rainy season at Geunjeongjeon Hall. Mist shrouds the grand throne hall as summer rain falls softly on the ancient tiles. Water droplets cascade from the ornate roof dragons, while the wet stone steps gleam with reflected light from traditional palace lanterns. The rain creates a mystical atmosphere around the royal court architecture. [trigger]"
|
105 |
]
|
106 |
|
107 |
css = """
|