Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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)
|