gradio
gradio copied to clipboard
Specific videos are not displayed after being uploaded
Describe the bug
Specific videos are not displayed after being uploaded section_1_001.55_003.19.mp4.zip
Have you searched existing issues? 🔎
- [X] I have searched and found no existing issues
Reproduction
import gradio as gr
import os
os.environ['GRADIO_DEBUG'] = "1"
# 定义一个函数返回本地视频路径
def play_video():
return "./tmp/ec117b246645affdcc9c0a061d1f86d4eccde46bf0e80c8642754f7e046eb73c/section_1_000.80_002.91.mp4" # 替换为你的本地视频路径
# 使用 gr.Video 作为输出,展示本地视频
iface = gr.Interface(
fn=play_video, # 函数返回视频路径
inputs=gr.Video(),
outputs=None, # 无需输入
# 输出是一个视频组件
title="本地视频展示",
description="展示本地视频"
)
iface.launch()
Screenshot
No response
Logs
No response
System Info
Gradio Environment Information:
------------------------------
Operating System: Darwin
gradio version: 4.42.0
gradio_client version: 1.3.0
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 23.2.1
anyio: 4.3.0
fastapi: 0.110.1
ffmpy: 0.3.2
gradio-client==1.3.0 is not installed.
httpx: 0.27.0
huggingface-hub: 0.23.3
importlib-resources: 6.4.0
jinja2: 3.1.2
markupsafe: 2.1.3
matplotlib: 3.7.4
numpy: 1.26.4
orjson: 3.10.0
packaging: None
pandas: 2.2.1
pillow: None
pydantic: 2.8.2
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.1
ruff: 0.3.6
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.4
typing-extensions: 4.8.0
urllib3: 2.2.2
uvicorn: 0.30.6
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.
gradio_client dependencies in your environment:
fsspec: 2023.9.0
httpx: 0.27.0
huggingface-hub: 0.23.3
packaging: None
typing-extensions: 4.8.0
websockets: 11.0.3
Severity
I can work around it