JoPmt commited on
Commit
5a73097
·
1 Parent(s): 2f94b61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(imas["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!")
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)