BilalSardar commited on
Commit
714d462
1 Parent(s): a892bf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ modelieo=['nitrosocke/Arcane-Diffusion',
27
  def TextToImage(Prompt,model):
28
  model_id = model
29
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
30
- pipe = pipe.to("cuda")
31
 
32
  prompt = Prompt
33
  image = pipe(prompt).images[0]
 
27
  def TextToImage(Prompt,model):
28
  model_id = model
29
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
30
+ pipe = pipe.to("cpu")
31
 
32
  prompt = Prompt
33
  image = pipe(prompt).images[0]