charliealonso commited on
Commit
afb2bba
1 Parent(s): 1fc8f8d

Version 1.0

Browse files
Files changed (3) hide show
  1. app.py +3 -4
  2. flagged/log.csv +5 -0
  3. volumetrics.csv +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def concat_prompt(*args):
25
  prompt = ', '.join(choices)
26
  return prompt
27
 
28
- with open('escenografia.csv', 'r') as csv_file:
29
  csv_reader = csv.DictReader(csv_file)
30
  valoresUnicos = {}
31
  for campo in csv_reader.fieldnames:
@@ -42,10 +42,9 @@ for campo, valores in valoresUnicos.items():
42
  output_text = Textbox(label='Prompt')
43
 
44
 
45
- title = "Escenografia"
46
  description = '<div align="center"> Selecciona entre los distintos menús desplegables para generar un Prompt creativo, los que dejes en blanco serán elegidos aleatoriamente.</div>'
47
  inputs = [Dropdown(list(valoresUnicos[campo]), label=campo.capitalize()) for campo in valoresUnicos.keys()]
48
  outputs = output_text
49
- examples = [["scene featuring volumetric lighting", "indoor setting", "warm color temperature", "Straight On", "shallow depth of field", "dynamic composition", "minimalist environment", "hard shadows", "natural light sources", "fog effects", "morning time of day", "4K --ar 16:9"]]
50
 
51
- gr.Interface(fn=concat_prompt, inputs=inputs, outputs=outputs, examples=examples, title=title, description=description).launch()
 
25
  prompt = ', '.join(choices)
26
  return prompt
27
 
28
+ with open('volumetrics.csv', 'r') as csv_file:
29
  csv_reader = csv.DictReader(csv_file)
30
  valoresUnicos = {}
31
  for campo in csv_reader.fieldnames:
 
42
  output_text = Textbox(label='Prompt')
43
 
44
 
45
+ title = "Generador Prompts Midjourney"
46
  description = '<div align="center"> Selecciona entre los distintos menús desplegables para generar un Prompt creativo, los que dejes en blanco serán elegidos aleatoriamente.</div>'
47
  inputs = [Dropdown(list(valoresUnicos[campo]), label=campo.capitalize()) for campo in valoresUnicos.keys()]
48
  outputs = output_text
 
49
 
50
+ gr.Interface(fn=concat_prompt, inputs=inputs, outputs=outputs, title=title, description=description).launch()
flagged/log.csv ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Escenario,Evento,Ambiente,Color,Iluminacion,Atmosfera,Detalle,Formato,Prompt,flag,username,timestamp
2
+ [],[],[],[],[],[],[],[],"Design an immersive stage for , a video game launch event, , Featuring a vibrant and interactive environment. , and a tropical, beachy vibe., twinkling fairy lights and soft ambient lighting, To create a romantic and whimsical backdrop., Use dramatic and bold set design to create a sense of grandeur and awe., 4K --ar 16:9",,,2023-03-02 12:39:46.418068
3
+ [],[],[],[],[],[],[],[],"Design an immersive stage for , a video game launch event, , Featuring a vibrant and interactive environment. , and a tropical, beachy vibe., twinkling fairy lights and soft ambient lighting, To create a romantic and whimsical backdrop., Use dramatic and bold set design to create a sense of grandeur and awe., 4K --ar 16:9",,,2023-03-02 12:39:47.168964
4
+ [],[],[],[],[],[],[],[],"Design an immersive stage for , a video game launch event, , Featuring a vibrant and interactive environment. , and a tropical, beachy vibe., twinkling fairy lights and soft ambient lighting, To create a romantic and whimsical backdrop., Use dramatic and bold set design to create a sense of grandeur and awe., 4K --ar 16:9",,,2023-03-02 12:39:47.329592
5
+ [],[],[],[],[],[],[],[],"Design an immersive stage for , a video game launch event, , Featuring a vibrant and interactive environment. , and a tropical, beachy vibe., twinkling fairy lights and soft ambient lighting, To create a romantic and whimsical backdrop., Use dramatic and bold set design to create a sense of grandeur and awe., 4K --ar 16:9",,,2023-03-02 12:39:47.501470
volumetrics.csv CHANGED
@@ -1,4 +1,4 @@
1
- photo_style,setting,color_temperature,camera,depth_of_field,composition,environment,shadows,light_sources,effects,time,quality
2
  scene featuring volumetric lighting,indoor setting,warm color temperature,Straight On,shallow depth of field,dynamic composition,minimalist environment,hard shadows,natural light sources,fog effects,morning time of day,4K --ar 16:9
3
  ,outdoor setting,cool color temperature,Low angle,deep depth of field,static composition,busy environment,soft shadows,artificial light sources,smoke effects,night time of day,
4
  ,Abandoned warehouse,neutral color temperature,High angle,variable depth of field,balanced composition,industrial environment,diffuse shadows,colorful light sources,mist effects,afternoon time of day,
 
1
+ estilo,escena,color,camara,profundidad de campo,composicion,entorno,sombras,fuentes de luz,efectos,hora del dia,calidad
2
  scene featuring volumetric lighting,indoor setting,warm color temperature,Straight On,shallow depth of field,dynamic composition,minimalist environment,hard shadows,natural light sources,fog effects,morning time of day,4K --ar 16:9
3
  ,outdoor setting,cool color temperature,Low angle,deep depth of field,static composition,busy environment,soft shadows,artificial light sources,smoke effects,night time of day,
4
  ,Abandoned warehouse,neutral color temperature,High angle,variable depth of field,balanced composition,industrial environment,diffuse shadows,colorful light sources,mist effects,afternoon time of day,