Yaron Koresh commited on
Commit
37d0a8b
·
verified ·
1 Parent(s): 8e3d0f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -30,11 +30,12 @@ class Model(nn.Module):
30
  def forward(self, x):
31
  new_tensor = torch.randn(1, 1)
32
  self.buffer = torch.cat([self.buffer, new_tensor], dim=0)
 
33
 
34
- def dict2model(dict,model=Model()):
35
- model(dict)
36
  mix = ModelMixin()
37
- mix(model)
38
  return mix
39
 
40
  def forest_schnell():
 
30
  def forward(self, x):
31
  new_tensor = torch.randn(1, 1)
32
  self.buffer = torch.cat([self.buffer, new_tensor], dim=0)
33
+ return self
34
 
35
+ def dict2model(dict):
36
+ m = model(dict)
37
  mix = ModelMixin()
38
+ mix(m)
39
  return mix
40
 
41
  def forest_schnell():