Equityone commited on
Commit
6c0414c
·
verified ·
1 Parent(s): 7860e0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -234,13 +234,13 @@ def create_interface():
234
  gr.Markdown("### 📐 Format et Orientation")
235
  with gr.Row():
236
  format_size = gr.Dropdown(choices=["A4",
237
- A3",
238
- A2",
239
- A1",
240
- A0"],
241
  value="A4", label="Format")
242
  orientation = gr.Radio(choices=["Portrait",
243
- Paysage"],
244
  value="Portrait", label="Orientation")
245
 
246
  with gr.Group(elem_classes="controls-group"):
@@ -297,19 +297,19 @@ def create_interface():
297
  def generate(*args):
298
  logger.info("Démarrage d'une nouvelle génération")
299
  params = {
300
- format_size”: args[0],
301
- orientation”: args[1],
302
- style”: args[2],
303
- layout”: args[3],
304
- ambiance”: args[4],
305
- palette”: args[5],
306
- subject”: args[6],
307
- title”: args[7],
308
- detail_level”: args[8],
309
- contrast”: args[9],
310
- saturation”: args[10],
311
- quality”: args[11],
312
- creativity”: args[12]
313
  }
314
  result = generator.generate(params)
315
  logger.info(f"Génération terminée avec statut: {result[1]}")
 
234
  gr.Markdown("### 📐 Format et Orientation")
235
  with gr.Row():
236
  format_size = gr.Dropdown(choices=["A4",
237
+ A3,
238
+ A2,
239
+ A1,
240
+ A0],
241
  value="A4", label="Format")
242
  orientation = gr.Radio(choices=["Portrait",
243
+ Paysage],
244
  value="Portrait", label="Orientation")
245
 
246
  with gr.Group(elem_classes="controls-group"):
 
297
  def generate(*args):
298
  logger.info("Démarrage d'une nouvelle génération")
299
  params = {
300
+ "format_size": args[0],
301
+ "orientation": args[1],
302
+ "style": args[2],
303
+ "layout": args[3],
304
+ "ambiance": args[4],
305
+ "palette": args[5],
306
+ "subject": args[6],
307
+ "title": args[7],
308
+ "detail_level": args[8],
309
+ "contrast": args[9],
310
+ "saturation": args[10],
311
+ "quality": args[11],
312
+ "creativity": args[12]
313
  }
314
  result = generator.generate(params)
315
  logger.info(f"Génération terminée avec statut: {result[1]}")