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)
|
@@ -80,8 +80,7 @@ with gr.Blocks(title="RIFE Interpolation") as demo:
|
|
80 |
|
81 |
g_btn.click(
|
82 |
fn=interpolate_image,
|
83 |
-
inputs=[input_imageA, input_imageB]
|
84 |
-
outputs=[output_image, Path(output_image)],
|
85 |
)
|
86 |
|
87 |
with gr.Tab("Upload your images"):
|
|
|
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 |
|
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)
|
|
|
80 |
|
81 |
g_btn.click(
|
82 |
fn=interpolate_image,
|
83 |
+
inputs=[input_imageA, input_imageB]
|
|
|
84 |
)
|
85 |
|
86 |
with gr.Tab("Upload your images"):
|