fffiloni commited on
Commit
b145c39
·
verified ·
1 Parent(s): 2a12998

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -22,9 +22,14 @@ snapshot_download(
22
  def process_video(video_path, prompt, num_steps, degradation_level):
23
 
24
  output_folder="noise_warp_output_folder"
 
25
  if os.path.exists(output_folder):
26
  # Delete the folder and its contents
27
  shutil.rmtree(output_folder)
 
 
 
 
28
  output_video="output.mp4"
29
  device="cuda"
30
 
 
22
  def process_video(video_path, prompt, num_steps, degradation_level):
23
 
24
  output_folder="noise_warp_output_folder"
25
+
26
  if os.path.exists(output_folder):
27
  # Delete the folder and its contents
28
  shutil.rmtree(output_folder)
29
+ # Check if the file exists and delete it
30
+ if os.path.exists("output.mp4"):
31
+ os.remove("output.mp4")
32
+
33
  output_video="output.mp4"
34
  device="cuda"
35