AItool commited on
Commit
db3d6db
·
verified ·
1 Parent(s): 1b41dc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import uuid
4
  import subprocess
5
  from pathlib import Path
6
  from typing import Tuple
7
- from inference_img import *
8
  import gradio as gr
9
 
10
  # Demo images
@@ -34,7 +34,7 @@ def interpolate_image(img_a_path: str, img_b_path: str) -> Tuple[str, str]:
34
 
35
  try:
36
 
37
- inference_img(img=[Path(img_a_path), Path(img_b_path)],exp=4)
38
 
39
  print("ok")
40
  # 1) Run interpolation (frames -> TARGET_DIR/img1.png ... imgN.png)
 
4
  import subprocess
5
  from pathlib import Path
6
  from typing import Tuple
7
+ from inference_img import functional as F
8
  import gradio as gr
9
 
10
  # Demo images
 
34
 
35
  try:
36
 
37
+ F(img=[Path(img_a_path), Path(img_b_path)],exp=4)
38
 
39
  print("ok")
40
  # 1) Run interpolation (frames -> TARGET_DIR/img1.png ... imgN.png)