Spaces:
Build error
Build error
run subprocess
Browse files- app.py +1 -0
- driving.mp4 +3 -0
- gradio_queue.db +0 -0
app.py
CHANGED
@@ -109,6 +109,7 @@ def inference(video, image):
|
|
109 |
cmd = f"ffmpeg -y -i result.mp4 -i {video} -c copy -map 0:0 -map 1:1 -shortest out.mp4"
|
110 |
subprocess.run(cmd.split())
|
111 |
cmd = "ffmpeg -y -i driving.mp4 -i out.mp4 -filter_complex hstack=inputs=2 final.mp4"
|
|
|
112 |
return "final.mp4"
|
113 |
|
114 |
|
|
|
109 |
cmd = f"ffmpeg -y -i result.mp4 -i {video} -c copy -map 0:0 -map 1:1 -shortest out.mp4"
|
110 |
subprocess.run(cmd.split())
|
111 |
cmd = "ffmpeg -y -i driving.mp4 -i out.mp4 -filter_complex hstack=inputs=2 final.mp4"
|
112 |
+
subprocess.run(cmd.split())
|
113 |
return "final.mp4"
|
114 |
|
115 |
|
driving.mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4362329fa55b1671c9ec04a090ff24aac82a0339c5a0e541bb7ede05474b199f
|
3 |
+
size 201870
|
gradio_queue.db
CHANGED
Binary files a/gradio_queue.db and b/gradio_queue.db differ
|
|