ironjr commited on
Commit
ad24923
·
verified ·
1 Parent(s): 29a19b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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()