seawolf2357 commited on
Commit
10b5cd2
1 Parent(s): b3d3ef3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- "A young woman in a silk hanbok beneath cherry blossoms, wearing a jeogori in delicate peach silk with white diagonal lines, paired with a flowing chima in jade green. Her carefully wrapped hair is adorned with a silver binyeo catching the spring light. The hanbok's gentle movement mirrors the falling cherry petals, while the contrast between the soft peach top and vibrant green skirt creates a harmonious balance with the spring scenery. [trigger]",
95
 
96
- "A noble lady in traditional hanbok beside a palace pond, dressed in a royal blue jeogori adorned with intricate gold embroidery of phoenixes. Her deep crimson chima sweeps gracefully across the weathered stone steps, its silk surface rippling like water in the autumn breeze. Traditional jewelry including a jade daenggi and gold norigae complete her elegant ensemble, catching the late afternoon sun. [trigger]",
97
 
98
- "A bride in ceremonial wedding hanbok under moonlight, wearing a dynasty red jeogori embellished with golden symmetric patterns. Her voluminous purple chima, adorned with delicate silver-threaded flowers, creates a regal silhouette against the traditional wooden pavilion. The white collar and golden tasseled norigae sway gently as she moves, her face serene beneath the traditional jokduri headdress. [trigger]",
99
 
100
- "A young musician in performance hanbok by a traditional gayageum, dressed in a snow-white jeogori with delicate embroidered plum blossoms. Her flowing indigo chima pools around her as she sits, the fabric's sheen changing with each movement. A single orchid ornament in her classic braid reflects her artistic refinement, while the hanbok's clean lines emphasize her graceful posture. [trigger]",
101
 
102
- "A court lady in winter hanbok amid falling snow, wearing a deep forest green jeogori lined with fur at the cuffs. Her burgundy chima, padded for warmth, creates elegant swirls in the snow as she walks. Delicate golden-threaded patterns at her shoulders catch the winter light, while her carved jade binyeo holds her hair in a traditional style, completing the picture of winter elegance. [trigger]",
103
 
104
- "A dancer in festival hanbok at sunset, wearing a vibrant yellow jeogori that seems to capture the golden hour light. Her twirling sapphire blue chima creates a mesmerizing display of movement and color, its silk surface reflecting the warm evening glow. Silver bangles and a coral daenggi add flashes of brilliance as she moves, the hanbok's traditional silhouette transformed into a dynamic celebration of color and motion. [trigger]"
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 = """