Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 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)
|