ginipick commited on
Commit
9770fc5
·
verified ·
1 Parent(s): 859cecc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -372,7 +372,7 @@ def main():
372
  text_encoder, tokenizer, vae, model = model_main(args, master_port, 0)
373
  description = "Lumina-Image 2.0 ([Github](https://github.com/Alpha-VLLM/Lumina-Image-2.0/tree/main))"
374
 
375
- # 커스텀 CSS 모던한 UI 스타일 적용
376
  custom_css = """
377
  body {
378
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
@@ -380,7 +380,9 @@ def main():
380
  color: #333;
381
  }
382
  .gradio-container {
383
- background: #fff;
 
 
384
  border-radius: 15px;
385
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
386
  padding: 20px;
@@ -452,7 +454,6 @@ def main():
452
  prompts = [
453
  "Close-up portrait of a young woman with light brown hair, looking to the right, illuminated by warm, golden sunlight. Her hair is gently tousled, catching the light and creating a halo effect around her head. She wears a white garment with a V-neck, visible in the lower left of the frame. The background is dark and out of focus, enhancing the contrast between her illuminated face and the shadows. Soft, ethereal lighting, high contrast, warm color palette, shallow depth of field, natural backlighting, serene and contemplative mood, cinematic quality, intimate and visually striking composition.",
454
  "하늘을 나는 용, 신비로운 분위기, 구름 위를 날며 빛나는 비늘을 가진, 전설 속의 존재, 강렬한 색채와 디테일한 묘사.",
455
- "귀여운 고양이가 'Hello'라고 쓰여진 표지를 들고있다.",
456
  "Aesthetic photograph of a bouquet of pink and white ranunculus flowers in a clear glass vase, centrally positioned on a wooden surface. The flowers are in full bloom, displaying intricate layers of petals with a soft gradient from pale pink to white. The vase is filled with water, visible through the clear glass, and the stems are submerged. In the background, a blurred vase with green stems is partially visible, adding depth to the composition. The lighting is warm and natural, casting soft shadows and highlighting the delicate textures of the petals. The scene is serene and intimate, with a focus on the organic beauty of the flowers. Photorealistic, shallow depth of field, soft natural lighting, warm color palette, high contrast, glossy texture, tranquil, visually balanced.",
457
  "한只优雅的白猫穿着一件紫色的旗袍,旗袍上绣有精致的牡丹花图案,显得高贵典雅。它头上戴着一朵金色的发饰,嘴里叼着一根象征好运的红色丝带。周围环绕着许多飘动的纸鹤和金色的光点,营造出一种祥瑞和梦幻的氛围。超写实风格。"
458
  ]
 
372
  text_encoder, tokenizer, vae, model = model_main(args, master_port, 0)
373
  description = "Lumina-Image 2.0 ([Github](https://github.com/Alpha-VLLM/Lumina-Image-2.0/tree/main))"
374
 
375
+ # 커스텀 CSS: 메뉴 컨테이너의 너비를 줄이고, 배경이 잘 보이도록 반투명 배경을 적용합니다.
376
  custom_css = """
377
  body {
378
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
 
380
  color: #333;
381
  }
382
  .gradio-container {
383
+ background: rgba(255, 255, 255, 0.85); /* 반투명 배경 */
384
+ max-width: 800px; /* 컨테이너 최대 너비 조정 */
385
+ margin: 20px auto; /* 중앙 정렬 */
386
  border-radius: 15px;
387
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
388
  padding: 20px;
 
454
  prompts = [
455
  "Close-up portrait of a young woman with light brown hair, looking to the right, illuminated by warm, golden sunlight. Her hair is gently tousled, catching the light and creating a halo effect around her head. She wears a white garment with a V-neck, visible in the lower left of the frame. The background is dark and out of focus, enhancing the contrast between her illuminated face and the shadows. Soft, ethereal lighting, high contrast, warm color palette, shallow depth of field, natural backlighting, serene and contemplative mood, cinematic quality, intimate and visually striking composition.",
456
  "하늘을 나는 용, 신비로운 분위기, 구름 위를 날며 빛나는 비늘을 가진, 전설 속의 존재, 강렬한 색채와 디테일한 묘사.",
 
457
  "Aesthetic photograph of a bouquet of pink and white ranunculus flowers in a clear glass vase, centrally positioned on a wooden surface. The flowers are in full bloom, displaying intricate layers of petals with a soft gradient from pale pink to white. The vase is filled with water, visible through the clear glass, and the stems are submerged. In the background, a blurred vase with green stems is partially visible, adding depth to the composition. The lighting is warm and natural, casting soft shadows and highlighting the delicate textures of the petals. The scene is serene and intimate, with a focus on the organic beauty of the flowers. Photorealistic, shallow depth of field, soft natural lighting, warm color palette, high contrast, glossy texture, tranquil, visually balanced.",
458
  "한只优雅的白猫穿着一件紫色的旗袍,旗袍上绣有精致的牡丹花图案,显得高贵典雅。它头上戴着一朵金色的发饰,嘴里叼着一根象征好运的红色丝带。周围环绕着许多飘动的纸鹤和金色的光点,营造出一种祥瑞和梦幻的氛围。超写实风格。"
459
  ]