Spaces:
ginigen
/
Running on Zero

ginipick commited on
Commit
920bbb9
ยท
verified ยท
1 Parent(s): 2bfd5d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -39
app.py CHANGED
@@ -286,45 +286,48 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
286
  elem_classes=["generate-btn"]
287
  )
288
 
289
- # ์˜ˆ์ œ ํ”„๋กฌํ”„ํŠธ ์˜์—ญ
290
- gr.HTML("""
291
- <div style="margin-top: 1em; padding: 1em; border-radius: 8px; background: rgba(255, 255, 255, 0.05);">
292
- <h4 style="margin: 0 0 0.5em 0;">Example Prompts:</h4>
293
- <div style="background: rgba(75, 121, 161, 0.1); padding: 1em; border-radius: 8px; margin-bottom: 1em;">
294
- <p style="font-weight: bold; margin: 0 0 0.5em 0;">๐ŸŒ… Cinematic Landscape</p>
295
- <p style="margin: 0; font-style: italic;">"A breathtaking mountain vista at golden hour, dramatic sunbeams piercing through clouds, snow-capped peaks reflecting warm light, ultra-high detail photography, artistically composed, award-winning landscape photo, shot on Hasselblad"</p>
296
- </div>
297
- <div style="background: rgba(75, 121, 161, 0.1); padding: 1em; border-radius: 8px; margin-bottom: 1em;">
298
- <p style="font-weight: bold; margin: 0 0 0.5em 0;">๐Ÿ–ผ๏ธ Fantasy Portrait</p>
299
- <p style="margin: 0; font-style: italic;">"Ethereal portrait of an elven queen with flowing silver hair, adorned with luminescent crystals, intricate crown of twisted gold and moonstone, soft ethereal lighting, detailed facial features, fantasy art style, highly detailed, painted by Artgerm and Charlie Bowater"</p>
300
- </div>
301
- <div style="background: rgba(75, 121, 161, 0.1); padding: 1em; border-radius: 8px; margin-bottom: 1em;">
302
- <p style="font-weight: bold; margin: 0 0 0.5em 0;">๐ŸŒƒ Cyberpunk Scene</p>
303
- <p style="margin: 0; font-style: italic;">"Neon-lit cyberpunk street market in rain, holographic advertisements reflecting in puddles, street vendors with glowing cyber-augmentations, dense urban environment, atmospheric fog, cinematic lighting, inspired by Blade Runner 2049"</p>
304
- </div>
305
- <div style="background: rgba(75, 121, 161, 0.1); padding: 1em; border-radius: 8px; margin-bottom: 1em;">
306
- <p style="font-weight: bold; margin: 0 0 0.5em 0;">๐ŸŽจ Abstract Art</p>
307
- <p style="margin: 0; font-style: italic;">"Vibrant abstract composition of flowing liquid colors, dynamic swirls of iridescent purples and teals, golden geometric patterns emerging from chaos, luxury art style, ultra-detailed, painted in oil on canvas, inspired by James Jean and Gustav Klimt"</p>
308
- </div>
309
- <div style="background: rgba(75, 121, 161, 0.1); padding: 1em; border-radius: 8px; margin-bottom: 1em;">
310
- <p style="font-weight: bold; margin: 0 0 0.5em 0;">๐ŸŒฟ Macro Nature</p>
311
- <p style="margin: 0; font-style: italic;">"Extreme macro photography of a dewdrop on a butterfly wing, rainbow light refraction, crystalline clarity, intricate wing scales visible, natural bokeh background, professional studio lighting, shot with Canon MP-E 65mm lens"</p>
312
- </div>
313
- <!-- ์ถ”๊ฐ€ ์˜ˆ์ œ ํ”„๋กฌํ”„ํŠธ -->
314
- <div style="background: rgba(75, 121, 161, 0.1); padding: 1em; border-radius: 8px; margin-bottom: 1em;">
315
- <p style="font-weight: bold; margin: 0 0 0.5em 0;">๐Ÿค– Futuristic Cityscape</p>
316
- <p style="margin: 0; font-style: italic;">"A vibrant futuristic cityscape at night with neon lights, holograms, flying cars, and towering skyscrapers, ultra-detailed, cinematic atmosphere"</p>
317
- </div>
318
- <div style="background: rgba(75, 121, 161, 0.1); padding: 1em; border-radius: 8px; margin-bottom: 1em;">
319
- <p style="font-weight: bold; margin: 0 0 0.5em 0;">๐Ÿงš Enchanted Forest</p>
320
- <p style="margin: 0; font-style: italic;">"A mystical enchanted forest filled with luminescent flora, magical creatures, soft ethereal light, ultra-detailed, dreamlike atmosphere"</p>
321
- </div>
322
- <div style="background: rgba(75, 121, 161, 0.1); padding: 1em; border-radius: 8px;">
323
- <p style="font-weight: bold; margin: 0 0 0.5em 0;">๐ŸŒŒ Cosmic Explosion</p>
324
- <p style="margin: 0; font-style: italic;">"A stunning cosmic explosion in deep space, vibrant nebulae, swirling galaxies, high-resolution digital art, ethereal and awe-inspiring"</p>
325
- </div>
326
- </div>
327
- """)
 
 
 
328
 
329
  with gr.Column():
330
  # ๋ฉ”์ธ ์˜์—ญ: ์ƒ์„ฑ๋œ ์ด๋ฏธ์ง€์™€ ๊ฐค๋Ÿฌ๋ฆฌ ํ‘œ์‹œ
 
286
  elem_classes=["generate-btn"]
287
  )
288
 
289
+ # ์ธํ„ฐ๋ž™ํ‹ฐ๋ธŒ ์˜ˆ์ œ ํ”„๋กฌํ”„ํŠธ ์˜์—ญ
290
+ gr.Markdown("## Example Prompts")
291
+ example_prompts = [
292
+ {
293
+ "title": "๐ŸŒ… Cinematic Landscape",
294
+ "prompt": "A breathtaking mountain vista at golden hour with dramatic sunbeams piercing through a sea of clouds, snow-capped peaks reflecting warm light, ultra-high detail photography, and an award-winning landscape composition reminiscent of a masterpiece captured on Hasselblad."
295
+ },
296
+ {
297
+ "title": "๐Ÿ–ผ๏ธ Fantasy Portrait",
298
+ "prompt": "An ethereal portrait of an elven queen with flowing silver hair, adorned with shimmering luminescent crystals and an intricate crown of twisted gold and moonstone, bathed in soft, magical lighting with highly detailed facial features that evoke ancient mysticism."
299
+ },
300
+ {
301
+ "title": "๐ŸŒƒ Cyberpunk Scene",
302
+ "prompt": "A neon-drenched cyberpunk street market in torrential rain, with holographic advertisements reflecting off wet asphalt, futuristic street vendors, and a dense urban atmosphere reminiscent of Blade Runner 2049, all rendered in vivid cinematic style."
303
+ },
304
+ {
305
+ "title": "๐ŸŽจ Abstract Art",
306
+ "prompt": "A vibrant abstract composition of flowing liquid colors, dynamic swirls of iridescent purples, teals, and gold, with geometric patterns emerging from chaosโ€”an explosion of creativity that evokes modern expressionist masterpieces."
307
+ },
308
+ {
309
+ "title": "๐ŸŒฟ Macro Nature",
310
+ "prompt": "An extreme macro photograph capturing a dewdrop delicately perched on a butterfly wing, revealing intricate wing scales and rainbow refractions of light, set against a naturally blurred bokeh background, like a high-end studio shot."
311
+ },
312
+ {
313
+ "title": "๐Ÿค– Futuristic Cityscape",
314
+ "prompt": "A vibrant futuristic cityscape at night illuminated by neon lights, holographic billboards, and flying vehicles; towering skyscrapers and a bustling urban atmosphere rendered in ultra-detailed, cinematic style."
315
+ },
316
+ {
317
+ "title": "๐Ÿงš Enchanted Forest",
318
+ "prompt": "A mystical, enchanted forest bathed in soft, ethereal light, filled with luminescent flora, magical creatures, and ancient trees draped in mossโ€”evoking a dreamlike fairy tale ambiance with intricate details."
319
+ },
320
+ {
321
+ "title": "๐ŸŒŒ Cosmic Explosion",
322
+ "prompt": "A stunning cosmic explosion in deep space, with vibrant nebulae, swirling galaxies, and a burst of radiant colors illuminating the cosmosโ€”captured in high-resolution digital art that is both ethereal and awe-inspiring."
323
+ }
324
+ ]
325
+ # ๊ฐ ์˜ˆ์ œ๋งˆ๋‹ค ๋ฒ„ํŠผ์„ ๋งŒ๋“ค์–ด ํด๋ฆญ ์‹œ prompt์— ํ•ด๋‹น ๋ฌธ๊ตฌ๊ฐ€ ์ž๋™ ์‚ฝ์ž…๋˜๋„๋ก ํ•จ
326
+ for ex in example_prompts:
327
+ btn = gr.Button(ex["title"], variant="secondary")
328
+ # ๊ธฐ๋ณธ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ex["prompt"]๋ฅผ ์บก์ฒ˜ํ•˜์—ฌ, ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ํ”„๋กฌํ”„ํŠธ์— ํ•ด๋‹น ํ…์ŠคํŠธ๋ฅผ ๋ฐ˜ํ™˜
329
+ btn.click(fn=lambda prompt_text=ex["prompt"]: prompt_text, inputs=[], outputs=prompt)
330
+ gr.Markdown(f"*{ex['prompt']}*")
331
 
332
  with gr.Column():
333
  # ๋ฉ”์ธ ์˜์—ญ: ์ƒ์„ฑ๋œ ์ด๋ฏธ์ง€์™€ ๊ฐค๋Ÿฌ๋ฆฌ ํ‘œ์‹œ