Spaces:
Running
Running
File size: 684 Bytes
c28feac 5764d8b 2ee3801 c28feac b56c42a 2ee3801 ed7eb3f 2ee3801 ed7eb3f 5764d8b 2ee3801 5764d8b ed7eb3f 2ee3801 b56c42a 2ee3801 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import gradio as gr
from videopose_PSTMO import gr_video2mc
import os
def Video2MC(video, progress=gr.Progress(track_tqdm=True)):
progress(1.0, desc="Step 0: Starting")
output_path, output_video = gr_video2mc(video, progress)
return output_path, output_path, output_video
iface = gr.Interface(fn=Video2MC,
inputs=gr.Video(),
outputs=["file", "text", gr.Video()],
examples=[os.path.join(os.path.dirname(__file__),
"input_videos/kun_test_5sec.mp4")],
cache_examples=False,
)
iface.queue(concurrency_count=10).launch() |