Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -199,7 +199,10 @@ class AnimateController:
|
|
199 |
with open(os.path.join(self.savedir, "logs.json"), "a") as f:
|
200 |
f.write(json_str)
|
201 |
f.write("\n\n")
|
202 |
-
|
|
|
|
|
|
|
203 |
return gr.Video.update(value=save_sample_path)
|
204 |
|
205 |
|
|
|
199 |
with open(os.path.join(self.savedir, "logs.json"), "a") as f:
|
200 |
f.write(json_str)
|
201 |
f.write("\n\n")
|
202 |
+
|
203 |
+
del pipeline
|
204 |
+
torch.cuda.empty_cache()
|
205 |
+
|
206 |
return gr.Video.update(value=save_sample_path)
|
207 |
|
208 |
|