Spaces:
Runtime error
Runtime error
update app
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ model_id = "dicoo_model"
|
|
12 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float)
|
13 |
|
14 |
def predict(prompt, steps=50, seed=42, guidance_scale=7.5):
|
15 |
-
print("prompt:", prompt)
|
|
|
16 |
image = pipe(prompt, num_inference_steps=steps, guidance_scale=7.5).images[0]
|
17 |
return image
|
18 |
|
|
|
12 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float)
|
13 |
|
14 |
def predict(prompt, steps=50, seed=42, guidance_scale=7.5):
|
15 |
+
print("prompt: ", prompt)
|
16 |
+
print("steps: ", steps)
|
17 |
image = pipe(prompt, num_inference_steps=steps, guidance_scale=7.5).images[0]
|
18 |
return image
|
19 |
|