Equityone commited on
Commit
af93c5b
·
verified ·
1 Parent(s): 1191660

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -23
app.py CHANGED
@@ -59,14 +59,15 @@ ART_STYLES = {
59
  "negative_prompt": "realistic, photographic, subtle, muted colors"
60
  },
61
  # New styles added here
62
- **"Noir et Blanc": {**
63
- **"prompt_prefix": "black and white style poster, monochromatic design",**
64
- **"negative_prompt": "colorful, vibrant designs"**
65
- **},**
66
  }
67
 
68
  # Paramètres de composition étendus
69
  COMPOSITION_PARAMS = {
 
70
  "Layouts": {
71
  "Centré": "centered composition, balanced layout",
72
  "Asymétrique": "dynamic asymmetrical composition",
@@ -76,25 +77,25 @@ COMPOSITION_PARAMS = {
76
  "Radial": "radial composition, circular arrangement",
77
  "En Z": "Z-shaped composition, guiding viewer's eye",
78
  "Règle des tiers": "rule of thirds composition",
79
- "Symétrie": "symmetrical composition, mirror-like balance",
80
- "Cadre dans le cadre": "frame within a frame composition"
81
  },
82
  # New ambiance added here
83
- **"Ambiances": {**
84
- **"Dramatique": "dramatic lighting, high contrast",**
85
- **"Doux": "soft lighting, gentle atmosphere",**
86
- **"Vibrant": "vibrant colors, energetic mood",**
87
- **"Mystérieux": "mysterious atmosphere, moody lighting",**
88
- **"Serein": "peaceful atmosphere, calm mood",**
89
- **"Rétro": "retro atmosphere, nostalgic mood",**
90
- **"Futuriste": "futuristic atmosphere, high-tech mood",**
91
- **"Onirique": "dreamy atmosphere, surreal mood",**
92
- **"Industriel": "industrial atmosphere, raw and urban mood",**
93
- **"Naturel": "natural atmosphere, organic and earthy mood",**
94
- **"Nocturne": "nocturnal atmosphere, dark and moody lighting"**
95
- **},**
96
- # Palette remains unchanged
97
- ...
98
  }
99
 
100
  class ImageGenerator:
@@ -237,8 +238,8 @@ def create_interface():
237
 
238
  with gr.Group(elem_classes="controls-group"):
239
  with gr.Row():
240
- quality = gr.Slider(minimum=30,maximum=50,value=35,label="Qualité")
241
- creativity = gr.Slider(minimum=5,maximum=15,value=7.5,label="Créativité")
242
 
243
  with gr.Row():
244
  generate_btn = gr.Button("✨ Générer", variant="primary")
 
59
  "negative_prompt": "realistic, photographic, subtle, muted colors"
60
  },
61
  # New styles added here
62
+ "Noir et Blanc": { # Corrected syntax here
63
+ "prompt_prefix": "black and white style poster, monochromatic design",
64
+ "negative_prompt": "colorful, vibrant designs"
65
+ },
66
  }
67
 
68
  # Paramètres de composition étendus
69
  COMPOSITION_PARAMS = {
70
+ # Layouts remain unchanged
71
  "Layouts": {
72
  "Centré": "centered composition, balanced layout",
73
  "Asymétrique": "dynamic asymmetrical composition",
 
77
  "Radial": "radial composition, circular arrangement",
78
  "En Z": "Z-shaped composition, guiding viewer's eye",
79
  "Règle des tiers": "rule of thirds composition",
80
+ "Symétrie": "symmetrical composition, mirror-like balance",
81
+ "Cadre dans le cadre": "frame within a frame composition"
82
  },
83
  # New ambiance added here
84
+ "Ambiances": { # Corrected syntax here
85
+ "Dramatique": "dramatic lighting, high contrast",
86
+ "Doux": "soft lighting, gentle atmosphere",
87
+ "Vibrant": "vibrant colors, energetic mood",
88
+ "Mystérieux": "mysterious atmosphere, moody lighting",
89
+ "Serein": "peaceful atmosphere, calm mood",
90
+ "Rétro": "retro atmosphere, nostalgic mood",
91
+ "Futuriste": "futuristic atmosphere, high-tech mood",
92
+ "Onirique": "dreamy atmosphere, surreal mood",
93
+ "Industriel": "industrial atmosphere, raw and urban mood",
94
+ "Naturel": "natural atmosphere, organic and earthy mood",
95
+ "Nocturne": "nocturnal atmosphere, dark and moody lighting"
96
+ },
97
+ # Palette remains unchanged
98
+ ...
99
  }
100
 
101
  class ImageGenerator:
 
238
 
239
  with gr.Group(elem_classes="controls-group"):
240
  with gr.Row():
241
+ quality = gr.Slider(minimum=30,maximun=50,value=35,label="Qualité")
242
+ creativity = gr.Slider(minimum=5,maximun=15,value=7.5,label="Créativité")
243
 
244
  with gr.Row():
245
  generate_btn = gr.Button("✨ Générer", variant="primary")