To create a public link, set `share=True` in `launch()`. Building prefix dict from the default dictionary ... DEBUG:jieba:Building prefix dict from the default dictionary ... Loading model from cache C:\Users\LY-AI\AppData\Local\Temp\jieba.cache DEBUG:jieba:Loading model from cache C:\Users\LY-AI\AppData\Local\Temp\jieba.cache Loading model cost 0.715 seconds. DEBUG:jieba:Loading model cost 0.715 seconds. Prefix dict has been built successfully. DEBUG:jieba:Prefix dict has been built successfully. C:\Users\LY-AI\Desktop\AI\vits-uma-genshin-honkai\python3.9.13\3.9.13\lib\site-packages\gradio\processing_utils.py:183: UserWarning: Trying to convert audio automatically from float32 to 16-bit int format. warnings.warn(warning.format(data.dtype)) Traceback (most recent call last): File "C:\Users\LY-AI\Desktop\AI\vits-uma-genshin-honkai\python3.9.13\3.9.13\lib\site-packages\gradio\routes.py", line 442, in run_predict output = await app.get_blocks().process_api( File "C:\Users\LY-AI\Desktop\AI\vits-uma-genshin-honkai\python3.9.13\3.9.13\lib\site-packages\gradio\blocks.py", line 1392, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "C:\Users\LY-AI\Desktop\AI\vits-uma-genshin-honkai\python3.9.13\3.9.13\lib\site-packages\gradio\blocks.py", line 1326, in postprocess_data prediction_value = block.postprocess(prediction_value) File "C:\Users\LY-AI\Desktop\AI\vits-uma-genshin-honkai\app.py", line 41, in audio_postprocess return gr.processing_utils.encode_url_or_file_to_base64(data['name']) AttributeError: module 'gradio.processing_utils' has no attribute 'encode_url_or_file_to_base64'
时间: 2023-08-08 09:06:02 浏览: 355
这个错误是由于 `gradio.processing_utils` 模块中没有 `encode_url_or_file_to_base64` 属性导致的。这可能是由于 gradio 库的版本问题引起的。
为了解决这个问题,您可以尝试更新 gradio 库到最新版本。可以使用以下命令来更新 gradio 库:
```
pip install --upgrade gradio
```
如果更新之后仍然遇到相同的问题,请尝试降低 gradio 库的版本。可以使用以下命令来安装较旧的 gradio 版本:
```
pip install gradio==0.8.5
```
请注意,版本号可能需要根据您当前的环境和需求进行调整。
如果问题仍然存在,请提供完整的代码和详细的错误信息,以便我能够更好地帮助您解决问题。
阅读全文