Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from huggingface_hub import hf_hub_download | |
| # 下载一个测试视频 | |
| video_path = hf_hub_download( | |
| repo_id="WenjiaWang/videoforuser", | |
| filename="0O_YyxcC-kA_scene-35_2/gen3c.mp4", | |
| repo_type="dataset" | |
| ) | |
| print(f"视频路径: {video_path}") | |
| # 测试显示 | |
| with gr.Blocks() as demo: | |
| gr.Markdown("# 测试视频显示") | |
| video = gr.Video(value=video_path, label="测试视频") | |
| demo.launch(server_name="0.0.0.0", server_port=7861) | |