akhaliq HF staff commited on
Commit
1f53fce
1 Parent(s): a7a270f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -14,9 +14,6 @@ from huggingface_hub import snapshot_download
14
 
15
  from image_tools.sizes import resize_and_crop
16
 
17
- import gc
18
-
19
-
20
 
21
 
22
  model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
@@ -60,9 +57,6 @@ def predict(frame1, frame2, times_to_interpolate):
60
  input_frames, times_to_interpolate, interpolator))
61
 
62
  mediapy.write_video("out.mp4", frames, fps=30)
63
- del frames
64
- del input_frames
65
- gc.collect()
66
  return "out.mp4"
67
 
68
  title="frame-interpolation"
 
14
 
15
  from image_tools.sizes import resize_and_crop
16
 
 
 
 
17
 
18
 
19
  model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
 
57
  input_frames, times_to_interpolate, interpolator))
58
 
59
  mediapy.write_video("out.mp4", frames, fps=30)
 
 
 
60
  return "out.mp4"
61
 
62
  title="frame-interpolation"