RanM commited on
Commit
54b597c
·
verified ·
1 Parent(s): ad85332

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ def generate_image(prompt):
21
  # Use the thread-local step index
22
  output = model(
23
  prompt=prompt,
24
- num_inference_steps=1, # Add a sensible default for inference steps
25
- guidance_scale=0.0,
26
  output_type="pil" # Directly get PIL Image objects
27
  )
28
 
 
21
  # Use the thread-local step index
22
  output = model(
23
  prompt=prompt,
24
+ num_inference_steps=1, # Set to a more reasonable default for inference steps
25
+ guidance_scale=0.0, # Adjust guidance scale for better image quality
26
  output_type="pil" # Directly get PIL Image objects
27
  )
28