mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
14 lines
196 B
Python
14 lines
196 B
Python
# 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()
|