chrisxx commited on
Commit
4129b19
·
verified ·
1 Parent(s): c814c17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -204,7 +204,7 @@ def initialize_model():
204
  _reset_cache_fresh()
205
 
206
  # Sample with the fresh noise (matching notebook: sample(model, noise, actions[:, aidx:aidx+1], ...))
207
- z = sample(model_, noise, action_buf, num_steps=n_steps, cfg=cfg, negative_actions=None)
208
 
209
  if clamp:
210
  z = t.clamp(z, -1, 1)
 
204
  _reset_cache_fresh()
205
 
206
  # Sample with the fresh noise (matching notebook: sample(model, noise, actions[:, aidx:aidx+1], ...))
207
+ z = sample(model_, noise, action_buf, num_steps=n_steps, cfg=cfg, negative_actions=None, cache=cache)
208
 
209
  if clamp:
210
  z = t.clamp(z, -1, 1)