wifix199 commited on
Commit
1f38b4a
·
verified ·
1 Parent(s): b32f8d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float
7
  pipe.to("cpu") # Use "cuda" if GPU is available
8
 
9
  def generate_image(prompt, pipe):
10
- # Generate the image using the pipeline
11
- image = pipe(prompt).images[0]
12
  return image
13
 
14
  def chatbot(prompt):
 
7
  pipe.to("cpu") # Use "cuda" if GPU is available
8
 
9
  def generate_image(prompt, pipe):
10
+ # Generate the image using the pipeline with proper args handling
11
+ image = pipe(prompt, guidance_scale=7.5, num_inference_steps=50).images[0]
12
  return image
13
 
14
  def chatbot(prompt):