guoyww commited on
Commit
e3e1d80
1 Parent(s): 9e97363

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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