gradio/demo/video_flip.py

15 lines
274 B
Python
Raw Normal View History

2021-01-28 08:16:35 +08:00
import gradio as gr
def video_flip(video):
2021-08-31 03:22:12 +08:00
return video
2021-01-28 08:16:35 +08:00
2021-10-05 05:11:39 +08:00
iface = gr.Interface(
2021-10-06 03:23:23 +08:00
video_flip, "video", "playable_video", theme="huggingface",
examples=[
["files/video.avi"],
["files/video.mp4"]
])
2021-01-28 08:16:35 +08:00
if __name__ == "__main__":
iface.launch()