AItool commited on
Commit
3387a89
·
verified ·
1 Parent(s): 136fd88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
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 run_imginference
8
  import gradio as gr
9
 
10
  # Demo images
@@ -34,13 +34,11 @@ def interpolate_image(img_a_path: str, img_b_path: str) -> Tuple[str, str]:
34
 
35
  try:
36
 
37
- run_imginference(
38
- img=[--img,
39
- str(img_a_path), str(img_b_path)],
40
  exp=4,
41
- modeldir=str(MODEL)
42
  )
43
-
44
  # 1) Run interpolation (frames -> TARGET_DIR/img1.png ... imgN.png)
45
  # # subprocess.run([
46
  # # "python3", "inference_img.py",
 
4
  import subprocess
5
  from pathlib import Path
6
  from typing import Tuple
7
+ from inference_img
8
  import gradio as gr
9
 
10
  # Demo images
 
34
 
35
  try:
36
 
37
+ inference_img(--img, img_a_path=[str(img_a_path)],img_b_path=[str(img_b_path)],
 
 
38
  exp=4,
39
+ modeldir=[str(MODEL)])
40
  )
41
+ print("ok")
42
  # 1) Run interpolation (frames -> TARGET_DIR/img1.png ... imgN.png)
43
  # # subprocess.run([
44
  # # "python3", "inference_img.py",