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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -68,13 +68,13 @@ def run_async(func, *args):
68
  async def improve_prompt(prompt):
69
  try:
70
  instructions = [
71
- "With my idea, create a vibrant and photorealistic description for a detailed txt2img prompt in English, 300 characters max.",
72
- "With my idea, write a creative, realistic, and detailed text-to-image prompt in English, 300 characters max.",
73
- "With my idea, generate a descriptive and True to life txt2img prompt in English, 300 characters max.",
74
  "With my idea, describe a photorealistic scene with detailed illumination for a txt2img prompt in English, 300 characters max.",
75
- "With my idea, give a realistic, elegant txt2img prompt in English, emphasizing photorealism, 300 characters max.",
76
- "With my idea, conform a visually dynamic and hyperrealistic txt2img prompt in English, 300 characters max.",
77
- "With my idea, realize an Down-to-earth and cinematic txt2img prompt in English with hyperrealistic elements, 300 characters max.",
78
  "With my idea, make a lifelike and txt2img prompt in English, focusing on photorealistic depth, 300 characters max."
79
  ]
80
  instruction = random.choice(instructions)
@@ -142,9 +142,9 @@ async def main():
142
 
143
  prompt = st.sidebar.text_area("Descripción de la imagen", height=150, max_chars=900)
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)
 
68
  async def improve_prompt(prompt):
69
  try:
70
  instructions = [
71
+ "With this words, create a photorealistic description for a detailed txt2img prompt in English, 300 characters max.",
72
+ "With this idea, write a creative, realistic, and detailed text-to-image prompt in English, 300 characters max.",
73
+ "With this text, generate a descriptive and True to life txt2img prompt in English, 300 characters max.",
74
  "With my idea, describe a photorealistic scene with detailed illumination for a txt2img prompt in English, 300 characters max.",
75
+ "With this concept, give a realistic, elegant txt2img prompt in English, emphasizing photorealism, 300 characters max.",
76
+ "With this perspective, conform a visually dynamic and hyperrealistic txt2img prompt in English, 300 characters max.",
77
+ "With this inspiration, realize a cinematic txt2img prompt in English with hyperrealistic elements, 300 characters max.",
78
  "With my idea, make a lifelike and txt2img prompt in English, focusing on photorealistic depth, 300 characters max."
79
  ]
80
  instruction = random.choice(instructions)
 
142
 
143
  prompt = st.sidebar.text_area("Descripción de la imagen", height=150, max_chars=900)
144
  format_option = st.sidebar.selectbox("Formato", ["9:16", "16:9", "1:1"])
 
145
  model_option = st.sidebar.selectbox("Modelo", ["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-dev"])
146
+ prompt_checkbox = st.sidebar.checkbox("Mejorar Prompt")
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)