gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
30.69k stars 2.28k forks source link

How can we load audio files into Gradio video element? #8414

Open FurkanGozukara opened 1 month ago

FurkanGozukara commented 1 month ago

I want to get both audio and video input from user. And i want user provided file to be displayed to the user

When I use gradio.video it can't pick audio files

this below works but that time it doesn't display loaded media?

input_video = gr.File(label="Target Input (Video or Audio)", type="filepath", file_count="single", file_types=["video", "audio"], height=512)