salomonsky commited on
Commit
f5b2d85
1 Parent(s): b2cfe64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -144,6 +144,7 @@ async def main():
144
  format_option = st.sidebar.selectbox("Formato", ["9:16", "16:9", "1:1"])
145
  prompt_checkbox = st.sidebar.checkbox("Mejorar Prompt")
146
  model_option = st.sidebar.selectbox("Modelo", ["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-dev"])
 
147
  style_option = st.sidebar.selectbox("Camara", ["Over Showder", "Medium Shot", "Long Shot", "Close-UP", "Dutch Angle", "High Angle", "Low Angle", "Oblique Angle"])
148
 
149
  width, height = (360, 640) if format_option == "9:16" else (640, 360) if format_option == "16:9" else (640, 640)
@@ -155,7 +156,7 @@ async def main():
155
 
156
  if prompt_checkbox:
157
  with st.spinner("Generando prompts mejorados..."):
158
- prompts = await generate_variations(prompt, num_variants, True, style_option)
159
  else:
160
  prompts = [f"{prompt}, estilo: {style_option}"]
161
 
 
144
  format_option = st.sidebar.selectbox("Formato", ["9:16", "16:9", "1:1"])
145
  prompt_checkbox = st.sidebar.checkbox("Mejorar Prompt")
146
  model_option = st.sidebar.selectbox("Modelo", ["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-dev"])
147
+ style_type = st.sidebar.selectbox("Estilo", ["realismo", "hiperrealismo", "photorealismo", "ilustración", "abstracto", "imaginativo"])
148
  style_option = st.sidebar.selectbox("Camara", ["Over Showder", "Medium Shot", "Long Shot", "Close-UP", "Dutch Angle", "High Angle", "Low Angle", "Oblique Angle"])
149
 
150
  width, height = (360, 640) if format_option == "9:16" else (640, 360) if format_option == "16:9" else (640, 640)
 
156
 
157
  if prompt_checkbox:
158
  with st.spinner("Generando prompts mejorados..."):
159
+ prompts = await generate_variations(f"{prompt}, estilo: {style_option}, {style_type}", num_variants, prompt_checkbox, style_option) if prompt_checkbox else [f"{prompt}, estilo: {style_option}, {style_type}"]
160
  else:
161
  prompts = [f"{prompt}, estilo: {style_option}"]
162