Spaces:
Runtime error
Runtime error
Ahmed Faiyaz
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -12,11 +12,11 @@ pipeline = DiffusionPipeline.from_pretrained(
|
|
12 |
pipeline.unet.load_attn_procs("gr33nr1ng3r/Mukh-Oboyob")
|
13 |
|
14 |
def diffusion(text,num_inference_steps,guidance_scale):
|
15 |
-
prompt
|
16 |
image = pipeline(prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale,height=128,width=128).images[0]
|
17 |
-
|
18 |
return image
|
19 |
-
|
|
|
20 |
diffusion,
|
21 |
[
|
22 |
gr.Textbox(
|
@@ -30,4 +30,5 @@ demo = gr.Interface(
|
|
30 |
|
31 |
)
|
32 |
if __name__ == "__main__":
|
33 |
-
|
|
|
|
12 |
pipeline.unet.load_attn_procs("gr33nr1ng3r/Mukh-Oboyob")
|
13 |
|
14 |
def diffusion(text,num_inference_steps,guidance_scale):
|
15 |
+
prompt=text
|
16 |
image = pipeline(prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale,height=128,width=128).images[0]
|
|
|
17 |
return image
|
18 |
+
|
19 |
+
mukh_biboron_app = gr.Interface(
|
20 |
diffusion,
|
21 |
[
|
22 |
gr.Textbox(
|
|
|
30 |
|
31 |
)
|
32 |
if __name__ == "__main__":
|
33 |
+
mukh_biboron_app.queue(max_size=20).launch(show_error=True)
|
34 |
+
|