当前位置:   article > 正文

部署微调ChatGLM遇到的问题及解决方案_gradio chatglm 无输出

gradio chatglm 无输出

问题1:Could not create share link. Missing file: /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2.

Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:

  1. Download this file: https://cdn-media. huggingface.co/frpc-gradio-0.2/frpc_linux_amd64

2. Rename the downloaded file to: frpc_linux_amd64_v0.2

3.Move the file to this location: /usr/local/lib/python3.10/dist-packages/gradio

解决方案:

1.按照给的信息进行操作,三步:下载,重命名,移动

2.因为此文件是我们自己加进去的,需要给予此文件权限(!!!!重要)

到文件根目录下执行:

chmod +x frpc_linux_amd64_v0.2

问题2:Could not create share link. Please check your internet connection or our status page: https://status.gradio.app

这是因为问题一执行不到位导致的

进入frpc_linux_amd64_v0.2文件的目录下执行:

chmod +x frpc_linux_amd64_v0.2

问题3:home/user/.local/lib/python3.10/site-packages/gradio/helpers.py:818: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. return gr.Textbox(...) instead of return gr.update(...)

原因是gradio的版本太高,听说的

解决方案:

重装gradio(版本要求(<3.42)

  1. pip uninstall gradio
  2. pip uninstall gradio==3.40

此操作后可能遇到问题一,按照方案解决即

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/501656
推荐阅读
相关标签
  

闽ICP备14008679号