bluenevus commited on
Commit
24b06d3
·
verified ·
1 Parent(s): d46dfb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -113,14 +113,16 @@ def generate_image(stability_api_key, enhanced_prompt, style, negative_prompt):
113
  }
114
 
115
  data = {
116
- "prompt": f"{enhanced_prompt}, Style: {style}, highly detailed, photorealistic, high quality",
117
- "negative_prompt": negative_prompt,
118
  "model": "sd3.5-large-turbo",
119
  "output_format": "jpeg",
120
  "width": 1024,
121
  "height": 1024,
122
  "num_images": 1,
123
- "steps": 4, # SD3.5 Large Turbo generates high-quality images in just 4 steps
 
 
124
  }
125
 
126
  try:
 
113
  }
114
 
115
  data = {
116
+ "prompt": f"{enhanced_prompt}, Style: {style}, highly detailed, photorealistic, high quality, intricate details, sharp focus, textured, 8k resolution",
117
+ "negative_prompt": f"{negative_prompt}, smooth, blurry, low detail",
118
  "model": "sd3.5-large-turbo",
119
  "output_format": "jpeg",
120
  "width": 1024,
121
  "height": 1024,
122
  "num_images": 1,
123
+ "steps": 6, # Slightly increased from 4
124
+ "cfg_scale": 8, # Increased from default
125
+ "sampler": "K_EULER_ANCESTRAL"
126
  }
127
 
128
  try: