vikhyatk commited on
Commit
b3a8054
1 Parent(s): 5c4fa84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,7 +36,8 @@ class LayerWrapper(torch.nn.Module):
36
  return layer_outputs
37
 
38
  moondream.text_model.transformer.h = torch.nn.ModuleList([
39
- LayerWrapper(layer, vector, 4.2) for layer, vector in zip(og_h, control_vectors)
 
40
  ])
41
 
42
  @spaces.GPU(duration=10)
 
36
  return layer_outputs
37
 
38
  moondream.text_model.transformer.h = torch.nn.ModuleList([
39
+ LayerWrapper(layer, vector, 4.2)
40
+ for layer, vector in zip(moondream.text_model.transformer.h, control_vectors)
41
  ])
42
 
43
  @spaces.GPU(duration=10)