nightfury commited on
Commit
9f24a1c
·
1 Parent(s): 1730273

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -10,7 +10,7 @@ MY_SECRET_TOKEN=os.environ.get('HF_TOKEN_SD')
10
 
11
  from diffusers import StableDiffusionImg2ImgPipeline
12
 
13
- print("hello !")
14
 
15
  YOUR_TOKEN=MY_SECRET_TOKEN
16
 
@@ -49,9 +49,9 @@ def infer(prompt, source_img):
49
  images.append(image)
50
  return images
51
 
52
- print("Great ! Everything is working fine !")
53
 
54
- title="Img2Img Stable Diffusion"
55
  description="Img2Img Stable Diffusion example using CPU and HF token. <br />Warning: Slow process... ~5/10 min inference time. <b>NSFW filter enabled.</b>"
56
 
57
- gr.Interface(fn=infer, inputs=["text", source_img], outputs=gallery,title=title,description=description).queue(max_size=100).launch(enable_queue=True)
 
10
 
11
  from diffusers import StableDiffusionImg2ImgPipeline
12
 
13
+ print("hello sylvain")
14
 
15
  YOUR_TOKEN=MY_SECRET_TOKEN
16
 
 
49
  images.append(image)
50
  return images
51
 
52
+ print("Great sylvain ! Everything is working fine !")
53
 
54
+ title="Img2Img Stable Diffusion CPU"
55
  description="Img2Img Stable Diffusion example using CPU and HF token. <br />Warning: Slow process... ~5/10 min inference time. <b>NSFW filter enabled.</b>"
56
 
57
+ gr.Interface(fn=infer, inputs=["text", source_img], outputs=gallery,title=title,description=description).queue(max_size=100).launch(enable_queue=True)