fffiloni commited on
Commit
9bc5e26
·
1 Parent(s): 48bbfd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,7 +7,9 @@ from diffusers import StableDiffusionPipeline
7
  print("hello sylvain")
8
 
9
  YOUR_TOKEN="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"
 
10
  device="cpu"
 
11
  pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN)
12
  pipe.to(device)
13
 
@@ -20,5 +22,5 @@ print("Great sylvain ! Everything is working fine !")
20
  title="Stable Diffusion CPU"
21
  description="Stable Diffusion example using CPU and HF token. Warning: Slow process..."
22
 
23
- gr.Interface(fn=infer, inputs="text", outputs="image").launch()
24
 
 
7
  print("hello sylvain")
8
 
9
  YOUR_TOKEN="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"
10
+
11
  device="cpu"
12
+
13
  pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN)
14
  pipe.to(device)
15
 
 
22
  title="Stable Diffusion CPU"
23
  description="Stable Diffusion example using CPU and HF token. Warning: Slow process..."
24
 
25
+ gr.Interface(fn=infer, inputs="text", outputs="image",title=title,description=description).launch(enable_queue=True)
26