Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,11 @@ pipeline = DiffusionPipeline.from_pretrained(
|
|
11 |
)
|
12 |
pipeline.unet.load_attn_procs("gr33nr1ng3r/Mukh-Oboyob")
|
13 |
|
|
|
14 |
def diffusion(text,num_inference_steps,guidance_scale):
|
15 |
prompt=text
|
16 |
-
|
|
|
17 |
return image
|
18 |
|
19 |
mukh_biboron_app = gr.Interface(
|
|
|
11 |
)
|
12 |
pipeline.unet.load_attn_procs("gr33nr1ng3r/Mukh-Oboyob")
|
13 |
|
14 |
+
|
15 |
def diffusion(text,num_inference_steps,guidance_scale):
|
16 |
prompt=text
|
17 |
+
with torch.no_grad():
|
18 |
+
image = pipeline(prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale,height=128,width=128).images[0]
|
19 |
return image
|
20 |
|
21 |
mukh_biboron_app = gr.Interface(
|