gradio/demo/video_flip.py

14 lines
196 B
Python
Raw Normal View History

2021-01-28 08:16:35 +08:00
# Demo: (Video) -> (Image)
import gradio as gr
def video_flip(video):
return video[:-4]
iface = gr.Interface(video_flip, "video", "video")
if __name__ == "__main__":
iface.launch()