6drf21e / ChatTTS_colab

🚀 一键部署(含离线整合包)!基于 ChatTTS ,支持流式输出、音色抽卡、长音频生成和分角色朗读。简单易用,无需复杂安装。
2.12k stars 266 forks source link

mac本地conda部署出现错误Chat.infer() got an unexpected keyword argument 'stream' #56

Open steven1565528 opened 5 months ago

steven1565528 commented 5 months ago

speaker_type: role Traceback (most recent call last): File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/gradio/queueing.py", line 532, in process_events response = await route_utils.call_process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/gradio/route_utils.py", line 276, in call_process_api output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/gradio/blocks.py", line 1928, in process_api result = await self.call_function( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/gradio/blocks.py", line 1526, in call_function prediction = await utils.async_iteration(iterator) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/gradio/utils.py", line 656, in async_iteration return await iterator.anext() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/gradio/utils.py", line 649, in anext return await anyio.to_thread.run_sync( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 859, in run result = context.run(func, *args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/gradio/utils.py", line 632, in run_sync_iterator_async return next(iterator) ^^^^^^^^^^^^^^ File "/Volumes/T9/Anaconda/anaconda3/envs/Chat-tts/lib/python3.11/site-packages/gradio/utils.py", line 815, in gen_wrapper response = next(iterator) ^^^^^^^^^^^^^^ File "/Users/xuxiangxiang/ChatTTS_colab/webui_mix.py", line 382, in generate_tts_audio_stream wavs = chat.infer(text, params_infer_code=_params_infer_code, params_refine_text=params_refine_text, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Chat.infer() got an unexpected keyword argument 'stream'

6drf21e commented 5 months ago

需要更新官方包

FallenAngels520 commented 5 months ago

same question: TypeError: Chat.load_models() got an unexpected keyword argument 'custom_path'