Spaces:
Runtime error
Runtime error
joe chou
commited on
Commit
•
c49da58
1
Parent(s):
ab2f8c1
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,10 @@ def init():
|
|
45 |
|
46 |
trainer = pl.Trainer()
|
47 |
|
48 |
-
|
|
|
|
|
|
|
49 |
|
50 |
img = mpimg.imread('figure.png')
|
51 |
# Output Images
|
|
|
45 |
|
46 |
trainer = pl.Trainer()
|
47 |
|
48 |
+
for param in model.parameters():
|
49 |
+
param.requires_grad = False
|
50 |
+
|
51 |
+
return model, text_tokenizer, cond_tokenizer, args, trainer
|
52 |
|
53 |
img = mpimg.imread('figure.png')
|
54 |
# Output Images
|