Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,11 @@ pipe = StableDiffusionPipeline.from_pretrained(
|
|
| 10 |
pipe = pipe.to("cpu")
|
| 11 |
|
| 12 |
def generar_imagen(prompt):
|
| 13 |
-
imagen = pipe(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
return imagen
|
| 15 |
|
| 16 |
with gr.Blocks() as demo:
|
|
|
|
| 10 |
pipe = pipe.to("cpu")
|
| 11 |
|
| 12 |
def generar_imagen(prompt):
|
| 13 |
+
imagen = pipe(
|
| 14 |
+
prompt,
|
| 15 |
+
num_inference_steps=3, # antes era 1
|
| 16 |
+
guidance_scale=7.5 # mejora calidad
|
| 17 |
+
).images[0]
|
| 18 |
return imagen
|
| 19 |
|
| 20 |
with gr.Blocks() as demo:
|