Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -384,6 +384,7 @@ def register(state, drawpad):
|
|
384 |
|
385 |
@spaces.GPU(duration=120)
|
386 |
def run(state, drawpad):
|
|
|
387 |
state.model.device = torch.device('cuda')
|
388 |
state.model.reset_seed(state.model.generator, opt.seed)
|
389 |
state.model.reset_latent()
|
|
|
384 |
|
385 |
@spaces.GPU(duration=120)
|
386 |
def run(state, drawpad):
|
387 |
+
state.model = model
|
388 |
state.model.device = torch.device('cuda')
|
389 |
state.model.reset_seed(state.model.generator, opt.seed)
|
390 |
state.model.reset_latent()
|