musetalk的chat对话请求报错
运行musetalk的Qwen模型对话请求报错: ERROR:aiohttp.server:Error handling request Traceback (most recent call last): File "/root/miniconda3/envs/nerfstream/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request resp = await request_handler(request) File "/root/miniconda3/envs/nerfstream/lib/python3.10/site-packages/aiohttp/web_app.py", line 543, in _handle resp = await handler(request) File "/root/autodl-tmp/metahuman-stream/app.py", line 128, in human res=await asyncio.get_event_loop().run_in_executor(None, llm_response(params['text'])) File "/root/miniconda3/envs/nerfstream/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) TypeError: 'str' object is not callable 试了下解法,可以正常调用: 现在代码:res=await asyncio.get_event_loop().run_in_executor(None, llm_response(params['text'])) 修改之后:res = await asyncio.get_event_loop().run_in_executor(None, llm_response, params['text'])