runtime error
Exit code: 1. Reason: invalid value encountered in cast data = data.astype(np.int16) Traceback (most recent call last): File "/home/user/app/app.py", line 149, in <module> gr.Examples(examples=examples, fn=gen_tts, inputs=inputs, outputs=outputs, cache_examples=True) File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 81, in create_examples examples_obj.create() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 340, in create self._start_caching() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 391, in _start_caching client_utils.synchronize_async(self.cache) File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 855, in synchronize_async return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync raise return_result File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner result[0] = await coro File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 517, in cache prediction = await Context.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1945, in process_api data = await self.postprocess_data(block_fn, result["prediction"], state) File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1768, in postprocess_data prediction_value = block.postprocess(prediction_value) File "/usr/local/lib/python3.10/site-packages/gradio/components/audio.py", line 279, in postprocess file_path = processing_utils.save_audio_to_cache( File "/usr/local/lib/python3.10/site-packages/gradio/processing_utils.py", line 235, in save_audio_to_cache audio_to_file(sample_rate, data, filename, format=format) File "/usr/local/lib/python3.10/site-packages/gradio/processing_utils.py", line 564, in audio_to_file channels=(1 if len(data.shape) == 1 else data.shape[1]), IndexError: tuple index out of range
Container logs:
Fetching error logs...