ZeyuXie commited on
Commit
7d00b29
1 Parent(s): c43b5ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -18,7 +18,9 @@ class dotdict(dict):
18
  __setattr__ = dict.__setitem__
19
  __delattr__ = dict.__delitem__
20
 
 
21
  class InferRunner:
 
22
  def __init__(self, device):
23
  vae_config = json.load(open("ckpts/ldm/vae_config.json"))
24
  self.vae = AutoencoderKL(**vae_config).to(device)
 
18
  __setattr__ = dict.__setitem__
19
  __delattr__ = dict.__delitem__
20
 
21
+
22
  class InferRunner:
23
+ @spaces.GPU()
24
  def __init__(self, device):
25
  vae_config = json.load(open("ckpts/ldm/vae_config.json"))
26
  self.vae = AutoencoderKL(**vae_config).to(device)