fffiloni commited on
Commit
715cfb3
·
verified ·
1 Parent(s): 18ead1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -19,6 +19,9 @@ snapshot_download(
19
  def process_video(video_path, prompt, num_steps):
20
 
21
  output_folder="noise_warp_output_folder"
 
 
 
22
  output_video="output.mp4"
23
  device="cuda"
24
  num_steps=num_steps
 
19
  def process_video(video_path, prompt, num_steps):
20
 
21
  output_folder="noise_warp_output_folder"
22
+ if os.path.exists(output_folder):
23
+ # Delete the folder and its contents
24
+ shutil.rmtree(output_folder)
25
  output_video="output.mp4"
26
  device="cuda"
27
  num_steps=num_steps