alexeyGod commited on
Commit
45fd33c
·
verified ·
1 Parent(s): 891b12c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import numpy as np
3
  import random
4
 
5
  import spaces #[uncomment to use ZeroGPU]
6
- from diffusers import StableDiffusionPipeline ,AutoencoderTiny
7
  import torch
8
 
9
  from huggingface_hub import login
@@ -22,7 +22,7 @@ if torch.cuda.is_available():
22
  else:
23
  torch_dtype = torch.float32
24
 
25
- pipe = StableDiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
26
  pipe = pipe.to(device)
27
 
28
  MAX_SEED = np.iinfo(np.int32).max
 
3
  import random
4
 
5
  import spaces #[uncomment to use ZeroGPU]
6
+ from diffusers import DiffusionPipeline ,AutoencoderTiny
7
  import torch
8
 
9
  from huggingface_hub import login
 
22
  else:
23
  torch_dtype = torch.float32
24
 
25
+ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
26
  pipe = pipe.to(device)
27
 
28
  MAX_SEED = np.iinfo(np.int32).max