Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|