部署微调ChatGLM遇到的问题及解决方案

文章讲述了在使用Gradio时遇到的问题,如创建分享链接失败、文件权限问题以及更新方法过时。提供了下载、重命名、移动frpc文件及调整gradio版本的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题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)

pip   uninstall gradio

pip   uninstall gradio==3.40

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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值