Spaces:
Sleeping
Sleeping
rafaaa2105
commited on
Commit
•
1ffcdeb
1
Parent(s):
40822a4
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ for model_name in model_list:
|
|
18 |
@spaces.GPU
|
19 |
def generate_image(model_name, prompt, negative_prompt, num_inference_steps, guidance_scale):
|
20 |
pipe = models[model_name]
|
21 |
-
image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale)["
|
22 |
return image
|
23 |
|
24 |
|
|
|
18 |
@spaces.GPU
|
19 |
def generate_image(model_name, prompt, negative_prompt, num_inference_steps, guidance_scale):
|
20 |
pipe = models[model_name]
|
21 |
+
image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale)["stabilityai/stable-diffusion-xl-base-1.0"][0]
|
22 |
return image
|
23 |
|
24 |
|