Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,15 +34,15 @@ 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)
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
|
47 |
# 2) Generate palette
|
48 |
subprocess.run([
|
|
|
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)
|
41 |
+
subprocess.run([
|
42 |
+
"python3", "inference_img.py",
|
43 |
+
"--img", str(img_a_path), str(img_b_path),
|
44 |
+
"--exp", "4"
|
45 |
+
], check=True)
|
46 |
|
47 |
# 2) Generate palette
|
48 |
subprocess.run([
|