akhaliq HF staff commited on
Commit
497c126
1 Parent(s): a690883

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -10,16 +10,12 @@ from eval import interpolator, util
10
  import tensorflow as tf
11
  import gradio as gr
12
 
13
-
14
- _UINT8_MAX_F = float(np.iinfo(np.uint8).max)
15
-
16
  from huggingface_hub import snapshot_download
 
17
  model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
18
 
19
  interpolator = interpolator.Interpolator(model, None)
20
 
21
- batch_dt = np.full(shape=(1,), fill_value=0.5, dtype=np.float32)
22
-
23
  def predict(frame1, frame2, times_to_interpolate):
24
  img1 = frame1
25
  img2 = frame2
 
10
  import tensorflow as tf
11
  import gradio as gr
12
 
 
 
 
13
  from huggingface_hub import snapshot_download
14
+
15
  model = snapshot_download(repo_id="akhaliq/frame-interpolation-film-style")
16
 
17
  interpolator = interpolator.Interpolator(model, None)
18
 
 
 
19
  def predict(frame1, frame2, times_to_interpolate):
20
  img1 = frame1
21
  img2 = frame2