Spaces:
Running
Running
Update app.py
Browse files
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):
|