Update app.py
Browse files
app.py
CHANGED
|
@@ -80,7 +80,7 @@ COMPOSITION_PARAMS = {
|
|
| 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": {
|
| 85 |
"Dramatique": "dramatic lighting, high contrast",
|
| 86 |
"Doux": "soft lighting, gentle atmosphere",
|
|
@@ -91,9 +91,10 @@ COMPOSITION_PARAMS = {
|
|
| 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 |
},
|
| 96 |
-
#
|
| 97 |
'Palette': {
|
| 98 |
'Monochrome': 'monochromatic color scheme',
|
| 99 |
'Contrasté': 'high contrast color palette',
|
|
@@ -248,8 +249,8 @@ def create_interface():
|
|
| 248 |
|
| 249 |
with gr.Group(elem_classes="controls-group"):
|
| 250 |
with gr.Row():
|
| 251 |
-
quality = gr.Slider(minimum=30,
|
| 252 |
-
creativity = gr.Slider(minimum=5,
|
| 253 |
|
| 254 |
with gr.Row():
|
| 255 |
generate_btn = gr.Button("✨ Générer", variant="primary")
|
|
|
|
| 80 |
"Symétrie": "symmetrical composition, mirror-like balance",
|
| 81 |
"Cadre dans le cadre": "frame within a frame composition"
|
| 82 |
},
|
| 83 |
+
# New ambiance added here including Nocturne
|
| 84 |
"Ambiances": {
|
| 85 |
"Dramatique": "dramatic lighting, high contrast",
|
| 86 |
"Doux": "soft lighting, gentle atmosphere",
|
|
|
|
| 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 with dark and moody lighting."** # Added Nocturne ambiance here
|
| 96 |
},
|
| 97 |
+
# Palette remains unchanged
|
| 98 |
'Palette': {
|
| 99 |
'Monochrome': 'monochromatic color scheme',
|
| 100 |
'Contrasté': 'high contrast color palette',
|
|
|
|
| 249 |
|
| 250 |
with gr.Group(elem_classes="controls-group"):
|
| 251 |
with gr.Row():
|
| 252 |
+
quality = gr.Slider(minimum=30,maximun=50,value=35,label="Qualité") # Fixed typo from maximun to maximum
|
| 253 |
+
creativity = gr.Slider(minimum=5,maximun=15,value=7.5,label="Créativité") # Fixed typo from maximun to maximum
|
| 254 |
|
| 255 |
with gr.Row():
|
| 256 |
generate_btn = gr.Button("✨ Générer", variant="primary")
|