gradio/demo/video_flip/run.py

12 lines
196 B
Python
Raw Normal View History

2021-01-28 08:16:35 +08:00
import gradio as gr
2021-01-28 08:16:35 +08:00
def video_flip(video):
2021-08-31 03:22:12 +08:00
return video
2021-01-28 08:16:35 +08:00
2021-11-25 03:23:42 +08:00
iface = gr.Interface(video_flip, gr.inputs.Video(source="webcam"), "playable_video")
2021-01-28 08:16:35 +08:00
if __name__ == "__main__":
2021-12-01 10:33:39 +08:00
iface.launch()