New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve make_waveform #4570
Improve make_waveform #4570
Conversation
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-4570-all-demos |
…ect, support names with spaces)
Thanks @akx, taking a look at this now. Just a reminder that we appreciate if you can create an issue first with a repro instead of opening the PR directly. |
I tested out this PR and I agree with the security fix (by which I assume you mean dropping Testing this on import gradio as gr
gr.make_waveform("test 2.mp3") Can you give an example that is not working for you on |
A path with a space in it will be split into two shell arguments and simply won't work.
Right, at a (Windows) terminal now 😁 You can repro this by
See how |
Thanks @akx, was able to reproduce! LGTM Pushed a test as well. Should be good to merge once CI passes |
Description
This PR fixes
make_waveform
tomake_waveform
work when the input filename contains a space.The latter doesn't seem to generally be an issue for gradio component users, as machinery exists to clean up the more evil characters from uploaded
filepath
s, but can be if one usesmake_waveform
directly.Checklist: