Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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
|
35 |
-
model(dict)
|
36 |
mix = ModelMixin()
|
37 |
-
mix(
|
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():
|