gradio share link问题

小白心血来潮,想用一下gradio,并使用demo.launch(share = True)运行生成公网地址遇到以下三个问题:

一.没有frpc_darwin_arm64_v0.2,can not create share link

给出错误提示:

Could not create share link. Missing file: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gradio/frpc_darwin_arm64_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_darwin_arm64
2. Rename the downloaded file to: frpc_darwin_arm64_v0.2
3. Move the file to this location: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gradio

解决方案:

根据提示下载完rpc_darwin_arm64,修改名称

运行指令移动到指定位置,sudo mv 文件所在目录/frpc_darwin_arm64_v0.2 /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gradio

二、frpc不生效

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

解决方案:应该是权限问题参考了以下文章。

运行了以下指令,应该是解决了:

sudo chmod +x 自己目录/gradio/frpc_linux_amd64_v0.2

linux上报错:Could not create share link. Please check your internet connection or our status page-CSDN博客

三、又有新问题,login to server failed: EOF

[service.go:132] login to server failed: EOF

Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.
解决方案:

可能是公司网络端口问题,具体不太清楚。

换自己热点,可以了,生成了share link

  • 20
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值