Spaces:
Running on Zero
Running on Zero
[Admin maintenance] Support new ZeroGPU hardware
Browse filesThank you so much for having shared this Space with the community on this demo. We have upgraded the ZeroGPU infra-structure to run on modern blackwell architecture.
For that, we need to upgrade your demo to support that. This PR fixes your demo to work with the new architecture. As this is something we broke on our end, we may merge this PR autonomously. If this breaks unexpectedly or brings unintended consequences, feel free to revert, modify or otherwise. Any issues you can email apolinario@huggingface.co
Files changed (2)
- app.py+5-4
- requirements.txt+5-8
249 unmodified lines250251252253254255256257258259260261249 unmodified linesgr.Warning(t(ui_lang, "warn_prompt_missing"))return (target_sr, default_data)info = torchaudio.info(prompt_wav)if info.sample_rate < prompt_sr:gr.Warning(t(ui_lang, "warn_prompt_sr_low").format(info.sample_rate, prompt_sr))return (target_sr, default_data)if info.num_frames / info.sample_rate > 10:gr.Warning(t(ui_lang, "warn_prompt_too_long_10s"))return (target_sr, default_data)249 unmodified lines250251252253254255256257258259260261262249 unmodified linesgr.Warning(t(ui_lang, "warn_prompt_missing"))return (target_sr, default_data)import soundfile as _sfinfo = _sf.info(prompt_wav)if info.samplerate < prompt_sr:gr.Warning(t(ui_lang, "warn_prompt_sr_low").format(info.samplerate, prompt_sr))return (target_sr, default_data)if info.frames / info.samplerate > 10:gr.Warning(t(ui_lang, "warn_prompt_too_long_10s"))return (target_sr, default_data)
12345678910111213141516171819204 unmodified lines252627282930313233341 unmodified line36373839404142434445--extra-index-url https://download.pytorch.org/whl/cu121--extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/ # https://github.com/microsoft/onnxruntime/issues/21684--extra-index-url https://pypi.nvidia.com--trusted-host download.pytorch.org--trusted-host aiinfra.pkgs.visualstudio.com--trusted-host pypi.nvidia.comconformer==0.3.2deepspeed==0.15.1; sys_platform == 'linux'diffusers==0.29.0fastapi==0.115.6fastapi-cli==0.0.4gdown==5.1.0gradio==5.4.0grpcio==1.57.0grpcio-tools==1.57.0hydra-core==1.3.2HyperPyYAML==1.2.2inflect==7.3.1librosa==0.10.2lightning==2.2.44 unmodified linesonnx==1.16.0onnxruntime-gpu==1.18.0; sys_platform == 'linux'onnxruntime==1.18.0; sys_platform == 'darwin' or sys_platform == 'win32'openai-whisper==20231117protobuf==4.25pyarrow==18.1.0pydantic==2.7.0pyworld==0.3.4rich==13.7.1soundfile==0.12.11 unmodified linetensorrt-cu12==10.13.3.9; sys_platform == 'linux'tensorrt-cu12-bindings==10.13.3.9; sys_platform == 'linux'tensorrt-cu12-libs==10.13.3.9; sys_platform == 'linux'torch==2.2.2torchaudio==2.2.2transformers==4.51.3uvicorn==0.30.0wetext==0.0.4wget==3.2funasr==1.2.01234567891011121314151617184 unmodified lines2324252627282930311 unmodified line33343536373839404142--extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/ # https://github.com/microsoft/onnxruntime/issues/21684--extra-index-url https://pypi.nvidia.com--trusted-host download.pytorch.org--trusted-host aiinfra.pkgs.visualstudio.com--trusted-host pypi.nvidia.comconformer==0.3.2diffusers==0.29.0fastapi==0.115.6fastapi-cli==0.0.4gdown==5.1.0grpcio==1.57.0grpcio-tools==1.57.0hydra-core==1.3.2HyperPyYAML==1.2.2ruamel.yaml<0.18inflect==7.3.1librosa==0.10.2lightning==2.2.44 unmodified linesonnx==1.16.0onnxruntime-gpu==1.18.0; sys_platform == 'linux'onnxruntime==1.18.0; sys_platform == 'darwin' or sys_platform == 'win32'openai-whisperprotobuf==4.25pyarrow==18.1.0pyworld==0.3.4rich==13.7.1soundfile==0.12.11 unmodified linetensorrt-cu12==10.13.3.9; sys_platform == 'linux'tensorrt-cu12-bindings==10.13.3.9; sys_platform == 'linux'tensorrt-cu12-libs==10.13.3.9; sys_platform == 'linux'torch==2.10.0torchaudio==2.10.0torchcodec==0.10transformers==4.51.3wetext==0.0.4wget==3.2funasr==1.2.0
app.py+5-4
requirements.txt+5-8