AlStable commited on
Commit
88c8479
1 Parent(s): 32e5089

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ models=[
15
 
16
  def TextToImage(Prompt,model):
17
  model_id = model
18
- pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.get_default_dtype)
19
  pipe = pipe.to("cpu")
20
  prompt = Prompt
21
  image = pipe(prompt).images[0]
 
15
 
16
  def TextToImage(Prompt,model):
17
  model_id = model
18
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
19
  pipe = pipe.to("cpu")
20
  prompt = Prompt
21
  image = pipe(prompt).images[0]