Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -118,11 +118,6 @@ model = StreamMultiDiffusion(
|
|
118 |
seed=opt.seed,
|
119 |
).cuda()
|
120 |
|
121 |
-
model.device = torch.device('cuda')
|
122 |
-
model.reset_seed(model.generator, opt.seed)
|
123 |
-
model.reset_latent()
|
124 |
-
model.prepare()
|
125 |
-
|
126 |
print(f'[INFO] Parameters prepared!')
|
127 |
|
128 |
|
@@ -390,6 +385,11 @@ def register(state, drawpad):
|
|
390 |
|
391 |
@spaces.GPU
|
392 |
def run(state, drawpad):
|
|
|
|
|
|
|
|
|
|
|
393 |
state = register(state, drawpad)
|
394 |
state.is_running = True
|
395 |
|
|
|
118 |
seed=opt.seed,
|
119 |
).cuda()
|
120 |
|
|
|
|
|
|
|
|
|
|
|
121 |
print(f'[INFO] Parameters prepared!')
|
122 |
|
123 |
|
|
|
385 |
|
386 |
@spaces.GPU
|
387 |
def run(state, drawpad):
|
388 |
+
model.device = torch.device('cuda')
|
389 |
+
model.reset_seed(model.generator, opt.seed)
|
390 |
+
model.reset_latent()
|
391 |
+
model.prepare()
|
392 |
+
|
393 |
state = register(state, drawpad)
|
394 |
state.is_running = True
|
395 |
|