You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deployed gradio 4.32.0 in Debian 11/12 server. I used gr.Audio as input. When I upload a mp3 file, it got stuck and consumed all the server's resource which result in the hanging of server. inputs=[gr.Audio(sources=["upload", "microphone"], value="samples/sample_audio.mp3", type="filepath")],
It seems when I upload mp3 file, it will convert into wav automatically by ffmpeg, but the command of ffmpeg running in the background will keep running: ffmpeg -y -i xxx.mp3 -acodec pcm_s16le -vn -f wav -
When I am running gradio 4.32.0 in my MacOS 14.5, it works well.
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
importgradioasgr
Screenshot
Logs
No response
System Info
Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 4.32.0
gradio_client version: 0.17.0
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 23.2.1
altair: 5.3.0
fastapi: 0.111.0
ffmpy: 0.3.2
gradio-client==0.17.0 is not installed.
httpx: 0.27.0
huggingface-hub: 0.23.2
importlib-resources: 6.4.0
jinja2: 3.1.4
markupsafe: 2.1.5
matplotlib: 3.9.0
numpy: 1.26.4
orjson: 3.10.3
packaging: 24.0
pandas: 2.2.2
pillow: 10.3.0
pydantic: 2.7.2
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.1
ruff: 0.4.6
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.3
typing-extensions: 4.12.0
urllib3: 2.2.1
uvicorn: 0.30.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.
gradio_client dependencies in your environment:
fsspec: 2024.5.0
httpx: 0.27.0
huggingface-hub: 0.23.2
packaging: 24.0
typing-extensions: 4.12.0
websockets: 11.0.3
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
@vicfullstack this is difficult for us to repro as it only seems to happen on certain environments. When I tested this on a Mac, I didn't see any errors, as you mentioned. A couple of suggestions:
Can you make sure you are using the latest version of ffmpeg on your Debian environment?
You can specify the format parameter in gr.Audio to prevent it from converting it to a wav files. Simply set format=".mp3" and it should stay in the same format.
Hi folks, I just merged in a PR that I think should solve this. If you'd like to try it out, please install Gradio from this fork: #8843 (instructions are in the PR body). If you are still experiencing this bug, I'll reopen the issue.
Describe the bug
I deployed gradio 4.32.0 in Debian 11/12 server. I used gr.Audio as input. When I upload a mp3 file, it got stuck and consumed all the server's resource which result in the hanging of server.
inputs=[gr.Audio(sources=["upload", "microphone"], value="samples/sample_audio.mp3", type="filepath")],
It seems when I upload mp3 file, it will convert into wav automatically by ffmpeg, but the command of ffmpeg running in the background will keep running:
ffmpeg -y -i xxx.mp3 -acodec pcm_s16le -vn -f wav -
When I am running gradio 4.32.0 in my MacOS 14.5, it works well.
Have you searched existing issues? 🔎
Reproduction
Screenshot
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: