it begins with this, but the web ui starts despite that there is allready an error
module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "D:\working-dir\silero-webui\app.py", line 7, in <module>
import torch
File "D:\working-dir\silero-webui\venv\Lib\site-packages\torch\__init__.py", line 2120, in <module>
from torch._higher_order_ops import cond
File "D:\working-dir\silero-webui\venv\Lib\site-packages\torch\_higher_order_ops\__init__.py", line 1, in <module>
from .cond import cond
File "D:\working-dir\silero-webui\venv\Lib\site-packages\torch\_higher_order_ops\cond.py", line 5, in <module>
import torch._subclasses.functional_tensor
File "D:\working-dir\silero-webui\venv\Lib\site-packages\torch\_subclasses\functional_tensor.py", line 42, in <module>
class FunctionalTensor(torch.Tensor):
File "D:\working-dir\silero-webui\venv\Lib\site-packages\torch\_subclasses\functional_tensor.py", line 258, in FunctionalTensor
cpu = _conversion_method_template(device=torch.device("cpu"))
D:\working-dir\silero-webui\venv\Lib\site-packages\torch\_subclasses\functional_tensor.py:258: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.)
cpu = _conversion_method_template(device=torch.device("cpu"))
Running on local URL: http://127.0.0.1:7860[/code]
Traceback (most recent call last):
File "D:\working-dir\silero-webui\venv\Lib\site-packages\gradio\queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\working-dir\silero-webui\venv\Lib\site-packages\gradio\route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\working-dir\silero-webui\venv\Lib\site-packages\gradio\blocks.py", line 1923, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\working-dir\silero-webui\venv\Lib\site-packages\gradio\blocks.py", line 1508, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\working-dir\silero-webui\venv\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\working-dir\silero-webui\venv\Lib\site-packages\anyio\_backends\_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "D:\working-dir\silero-webui\venv\Lib\site-packages\anyio\_backends\_asyncio.py", line 859, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\working-dir\silero-webui\venv\Lib\site-packages\gradio\utils.py", line 818, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "D:\working-dir\silero-webui\app.py", line 77, in generate
torchaudio.save(output_file, audio, params['sample_rate'], format="wav")
File "D:\working-dir\silero-webui\venv\Lib\site-packages\torchaudio\_backend\utils.py", line 312, in save
backend = dispatcher(uri, format, backend)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\working-dir\silero-webui\venv\Lib\site-packages\torchaudio\_backend\utils.py", line 222, in dispatcher
raise RuntimeError(f"Couldn't find appropriate backend to handle uri {uri} and format {format}.")
RuntimeError: Couldn't find appropriate backend to handle uri output.wav and format wav.