Spaces:
Runtime error
Runtime error
File size: 720 Bytes
d2ea659 55615c8 d2ea659 c00520d 014ee66 ba27b4a c00520d ba27b4a c00520d cc5f18e ba27b4a c00520d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import gradio as gr
import os
def video_identity(video, text):
# You can use both the video and the text input in your function
return video, text
demo = gr.Interface(video_identity,
[gr.Video(), gr.Textbox(label="Text 2", info="Text to compare", lines=3, value="")],
"playable_video",
examples=[[
os.path.join(os.path.dirname(__file__), "video/test_video.mp4"),
""
]],
cache_examples=True
)
if __name__ == "__main__":
demo.launch() |