Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,8 +55,8 @@ def interpolate_image(img_a_path: str, img_b_path: str) -> Tuple[str, str]:
|
|
| 55 |
subprocess.run([
|
| 56 |
"ffmpeg", "-y", "-r", "14", "-f",
|
| 57 |
"-i", f"{TARGET_DIR}img%d.png",
|
| 58 |
-
|
| 59 |
-
|
| 60 |
], check=True)
|
| 61 |
|
| 62 |
return interpolated_image, interpolated_path
|
|
|
|
| 55 |
subprocess.run([
|
| 56 |
"ffmpeg", "-y", "-r", "14", "-f",
|
| 57 |
"-i", f"{TARGET_DIR}img%d.png",
|
| 58 |
+
"palettegen=stats_mode=single",
|
| 59 |
+
palette_path
|
| 60 |
], check=True)
|
| 61 |
|
| 62 |
return interpolated_image, interpolated_path
|