BATUTO-ART commited on
Commit
69ca061
·
verified ·
1 Parent(s): cad52f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +183 -10
app.py CHANGED
@@ -216,13 +216,12 @@ def generate_prompt_from_description(user_description, style="realistic"):
216
  return generated_prompt
217
 
218
  except Exception as e:
219
- return f"Error generating prompt: {str(e)}"
220
-
221
- # --------------------------
222
- # GENERADOR PRINCIPAL DE PROMPTS NSFW CON RANDOMIZACIÓN
223
  # --------------------------
224
  class HyperRealisticConfig:
225
  PROFESSIONAL_ROLES = [
 
226
  {
227
  "role": "Executive Secretary",
228
  "uniform": "form-fitting tailored black dress with silk blouse slightly unbuttoned",
@@ -286,6 +285,183 @@ class HyperRealisticConfig:
286
  "accessories": "medical chart and stethoscope",
287
  "pose": "reaching for high medical supplies on shelf",
288
  "accidental_hint": "dress lifting to show lace nursing bra and thigh highs"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  }
290
  ]
291
 
@@ -522,9 +698,7 @@ def generate_from_description_ui(user_description, prompt_style):
522
 
523
  def clear_history_ui():
524
  generator.clear_history()
525
- return gr.update(value=json.dumps(generator.get_history(), indent=2))
526
-
527
- # Interfaz Gradio simplificada sin selector de roles
528
  with gr.Blocks() as demo:
529
 
530
  gr.Markdown("# 🔥 NSFW AI Image Generator + Llama 4 Maverick")
@@ -535,7 +709,7 @@ with gr.Blocks() as demo:
535
  with gr.Column(scale=1):
536
  gr.Markdown("### Configuración Automática NSFW")
537
 
538
- gr.Markdown("**El sistema elegirá aleatoriamente entre 8 roles profesionales diferentes**")
539
 
540
  use_ai_enhancement = gr.Checkbox(
541
  label="Usar Mejora con Llama 4 Maverick",
@@ -674,8 +848,7 @@ with gr.Blocks() as demo:
674
  analysis_output = gr.Textbox(
675
  label="Analysis Result (English)",
676
  lines=8,
677
- placeholder="The analysis will appear here in pure English text, ready to copy...",
678
- show_copy_button=False
679
  )
680
 
681
  with gr.Tab("📊 Historial"):
 
216
  return generated_prompt
217
 
218
  except Exception as e:
219
+ return f"Error generating prompt: {str(e)}"# --------------------------
220
+ # GENERADOR PRINCIPAL DE PROMPTS NSFW CON RANDOMIZACIÓN (EXPANDIDO CON TODOS LOS ROLES DE REFERENCIA)
 
 
221
  # --------------------------
222
  class HyperRealisticConfig:
223
  PROFESSIONAL_ROLES = [
224
+ # Roles originales
225
  {
226
  "role": "Executive Secretary",
227
  "uniform": "form-fitting tailored black dress with silk blouse slightly unbuttoned",
 
285
  "accessories": "medical chart and stethoscope",
286
  "pose": "reaching for high medical supplies on shelf",
287
  "accidental_hint": "dress lifting to show lace nursing bra and thigh highs"
288
+ },
289
+ # Roles adicionales de la referencia, adaptados con estructuras similares (inventando detalles plausibles basados en el estilo original)
290
+ {
291
+ "role": "Fashion Boutique Owner",
292
+ "uniform": "stylish wrap dress with flowing fabric and subtle patterns",
293
+ "environment": "elegant boutique interior with soft ambient lighting",
294
+ "accessories": "fashion catalog and measuring tape",
295
+ "pose": "adjusting clothing rack with elegant stretch",
296
+ "accidental_hint": "fabric shifting to reveal lace slip and stockings"
297
+ },
298
+ {
299
+ "role": "Private Jet Attendant",
300
+ "uniform": "tailored luxury uniform with silk accents",
301
+ "environment": "private jet cabin with dim overhead lights",
302
+ "accessories": "beverage tray and flight manifest",
303
+ "pose": "serving drinks with graceful lean",
304
+ "accidental_hint": "uniform tightening to show lace corset beneath"
305
+ },
306
+ {
307
+ "role": "Art Gallery Curator",
308
+ "uniform": "sophisticated black ensemble with artistic jewelry",
309
+ "environment": "modern art gallery with spotlight illumination",
310
+ "accessories": "catalog and wine glass",
311
+ "pose": "arranging artwork on wall with reach",
312
+ "accidental_hint": "top opening slightly to reveal lace bra"
313
+ },
314
+ {
315
+ "role": "Ballet Instructor",
316
+ "uniform": "fitted leotard and tutu skirt",
317
+ "environment": "dance studio with mirrored walls and soft lights",
318
+ "accessories": "ballet barre and music player",
319
+ "pose": "demonstrating pirouette with elegant extension",
320
+ "accidental_hint": "fabric clinging to reveal subtle lingerie lines"
321
+ },
322
+ {
323
+ "role": "Yacht Stewardess",
324
+ "uniform": "nautical white dress with blue accents",
325
+ "environment": "luxury yacht deck with ocean view lighting",
326
+ "accessories": "serving tray and towels",
327
+ "pose": "polishing railing with bend",
328
+ "accidental_hint": "dress lifting in wind to show lace garters"
329
+ },
330
+ {
331
+ "role": "Professional Maid",
332
+ "uniform": "classic maid outfit with apron",
333
+ "environment": "opulent mansion room with chandelier lights",
334
+ "accessories": "duster and cleaning supplies",
335
+ "pose": "dusting high shelves with stretch",
336
+ "accidental_hint": "apron shifting to reveal lace petticoat"
337
+ },
338
+ {
339
+ "role": "Wine Sommelier",
340
+ "uniform": "elegant black vest and white shirt",
341
+ "environment": "wine cellar with dim candle-like lighting",
342
+ "accessories": "wine bottle and tasting glass",
343
+ "pose": "pouring wine with focused lean",
344
+ "accidental_hint": "shirt unbuttoning slightly to show lace top"
345
+ },
346
+ {
347
+ "role": "Casino Dealer",
348
+ "uniform": "formal dealer vest and bow tie",
349
+ "environment": "casino table with neon ambient lights",
350
+ "accessories": "card deck and chips",
351
+ "pose": "dealing cards with arm extension",
352
+ "accidental_hint": "vest tightening to outline lace bra"
353
+ },
354
+ {
355
+ "role": "News Anchor",
356
+ "uniform": "professional blouse and skirt suit",
357
+ "environment": "news studio with bright desk lights",
358
+ "accessories": "script papers and microphone",
359
+ "pose": "reading news with confident posture",
360
+ "accidental_hint": "blouse shifting to reveal lace camisole"
361
+ },
362
+ {
363
+ "role": "Police Officer",
364
+ "uniform": "fitted police uniform with badge",
365
+ "environment": "police station with overhead lighting",
366
+ "accessories": "handcuffs and notepad",
367
+ "pose": "writing report with bend over desk",
368
+ "accidental_hint": "uniform stretching to show lace underwear"
369
+ },
370
+ {
371
+ "role": "Military Officer",
372
+ "uniform": "crisp military dress uniform",
373
+ "environment": "barracks office with strategic lighting",
374
+ "accessories": "medals and command papers",
375
+ "pose": "saluting with straight posture",
376
+ "accidental_hint": "jacket opening to reveal lace top"
377
+ },
378
+ {
379
+ "role": "Fitness Instructor",
380
+ "uniform": "athletic leggings and tank top",
381
+ "environment": "gym with fluorescent lights",
382
+ "accessories": "dumbbells and timer",
383
+ "pose": "demonstrating squat with form",
384
+ "accidental_hint": "top riding up to show lace sports bra"
385
+ },
386
+ {
387
+ "role": "Yoga Practitioner",
388
+ "uniform": "flowy yoga pants and crop top",
389
+ "environment": "outdoor yoga mat with natural light",
390
+ "accessories": "incense and meditation beads",
391
+ "pose": "holding warrior pose with grace",
392
+ "accidental_hint": "pants tightening to outline lace thong"
393
+ },
394
+ {
395
+ "role": "Professional Dancer",
396
+ "uniform": "sequined dance dress",
397
+ "environment": "stage with spotlight illumination",
398
+ "accessories": "dance shoes and fan",
399
+ "pose": "mid-twirl with leg extension",
400
+ "accidental_hint": "dress flaring to reveal lace stockings"
401
+ },
402
+ {
403
+ "role": "Television Actress",
404
+ "uniform": "glamorous evening gown",
405
+ "environment": "film set with studio lights",
406
+ "accessories": "script and prop jewelry",
407
+ "pose": "rehearsing scene with dramatic pose",
408
+ "accidental_hint": "gown slipping to show lace slip"
409
+ },
410
+ {
411
+ "role": "Professional Chef",
412
+ "uniform": "white chef coat and pants",
413
+ "environment": "commercial kitchen with warm lights",
414
+ "accessories": "knife set and ingredients",
415
+ "pose": "chopping vegetables with focus",
416
+ "accidental_hint": "coat unbuttoning to reveal lace top"
417
+ },
418
+ {
419
+ "role": "Event Planner",
420
+ "uniform": "chic business casual dress",
421
+ "environment": "event venue with decorative lights",
422
+ "accessories": "clipboard and floral arrangements",
423
+ "pose": "setting table with bend",
424
+ "accidental_hint": "dress riding up to show lace garters"
425
+ },
426
+ {
427
+ "role": "Wine Expert",
428
+ "uniform": "sophisticated tasting outfit",
429
+ "environment": "vineyard tasting room with sunlight",
430
+ "accessories": "wine journal and corkscrew",
431
+ "pose": "swirling glass with elegant hold",
432
+ "accidental_hint": "top shifting to reveal lace bra"
433
+ },
434
+ {
435
+ "role": "Cultural Performer",
436
+ "uniform": "traditional cultural attire",
437
+ "environment": "performance stage with cultural lights",
438
+ "accessories": "instrument and props",
439
+ "pose": "mid-performance gesture",
440
+ "accidental_hint": "attire draping to show lace underlayer"
441
+ },
442
+ {
443
+ "role": "Diplomatic Official",
444
+ "uniform": "formal diplomatic suit",
445
+ "environment": "embassy room with elegant lighting",
446
+ "accessories": "briefcase and documents",
447
+ "pose": "reviewing papers with lean",
448
+ "accidental_hint": "jacket opening to reveal lace camisole"
449
+ },
450
+ {
451
+ "role": "Traditional Singer",
452
+ "uniform": "cultural singing gown",
453
+ "environment": "concert hall with stage lights",
454
+ "accessories": "microphone and sheet music",
455
+ "pose": "singing with expressive stance",
456
+ "accidental_hint": "gown flowing to reveal lace stockings"
457
+ },
458
+ {
459
+ "role": "Museum Director",
460
+ "uniform": "professional curator suit",
461
+ "environment": "museum exhibit with display lights",
462
+ "accessories": "guidebook and keys",
463
+ "pose": "inspecting artifact with reach",
464
+ "accidental_hint": "suit tightening to show lace outline"
465
  }
466
  ]
467
 
 
698
 
699
  def clear_history_ui():
700
  generator.clear_history()
701
+ return gr.update(value=json.dumps(generator.get_history(), indent=2))# Interfaz Gradio simplificada sin selector de roles
 
 
702
  with gr.Blocks() as demo:
703
 
704
  gr.Markdown("# 🔥 NSFW AI Image Generator + Llama 4 Maverick")
 
709
  with gr.Column(scale=1):
710
  gr.Markdown("### Configuración Automática NSFW")
711
 
712
+ gr.Markdown("**El sistema elegirá aleatoriamente entre todos los roles profesionales disponibles**")
713
 
714
  use_ai_enhancement = gr.Checkbox(
715
  label="Usar Mejora con Llama 4 Maverick",
 
848
  analysis_output = gr.Textbox(
849
  label="Analysis Result (English)",
850
  lines=8,
851
+ placeholder="The analysis will appear here in pure English text, ready to copy..."
 
852
  )
853
 
854
  with gr.Tab("📊 Historial"):