Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,10 @@ def plex(prompt):
|
|
19 |
gc.collect()
|
20 |
apol=[]
|
21 |
imags = pipe(prompt=[prompt]*2,negative_prompt=["bad quality"]*2,num_inference_steps=5,width=512,height=512,generator=generator)
|
22 |
-
for i, igs in enumerate(
|
23 |
apol.append(igs)
|
24 |
return apol
|
25 |
|
26 |
-
iface = gr.Interface(fn=plex,inputs=gr.Textbox(), outputs=gr.Gallery(columns=2), title="Stabilityai SD-Turbo CPU", description="Running on CPU, very slow!")
|
27 |
iface.queue(max_size=1)
|
28 |
iface.launch(max_threads=1)
|
|
|
19 |
gc.collect()
|
20 |
apol=[]
|
21 |
imags = pipe(prompt=[prompt]*2,negative_prompt=["bad quality"]*2,num_inference_steps=5,width=512,height=512,generator=generator)
|
22 |
+
for i, igs in enumerate(imags["images"]):
|
23 |
apol.append(igs)
|
24 |
return apol
|
25 |
|
26 |
+
iface = gr.Interface(fn=plex,inputs=gr.Textbox(), outputs=gr.Gallery(columns=2), title="Stabilityai SD-Turbo CPU", description="Running on CPU, very slow! by JoPmt")
|
27 |
iface.queue(max_size=1)
|
28 |
iface.launch(max_threads=1)
|