import huggingface_spaces as hfs # Create a space. space = hfs.create_space("my-space") # Install the `ffmpeg-input` module in the space. space.install_package("ffmpeg-input") # Upload the video file to the space. space.upload_file("/path/to/NEARHUBanimation.mp4") # Transcode the video file. space.run_script("transcode_video.py") # Launch a gradio interface that allows you to play the transcoded video file. demo = gr.Interface(transcode_video, gr.components.Video(), "playable_video", examples=video_files, cache_examples=True) if __name__ == "__main__": demo.launch()