报错提示
warnings.warn(
Running on local URL: http://127.0.0.1:7860
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.
解决方法
首先会先提示这个错误:
Could not create share link. Missing file: /root/miniconda3/envs/textgen/lib/python3.11/site-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: /root/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio
- 先按照提示,下载
frpc_linux_amd64
文件,下载地址 - 重命名为
frpc_linux_amd64_v0.2
, 并放入gradio
这个文件夹中(按你对应的,每个人的路径可能不一样) - 给
gradio
下的frpc_linux_amd64_v0.2
文件增加权限
sudo chmod +x /root/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio/frpc_linux_amd64_v0.2
参考链接:https://github.com/gradio-app/gradio/issues/3498#issuecomment-1651038942