Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoDL无法打开UI界面 #3591

Closed
1 task done
zhoujinyi66 opened this issue May 6, 2024 · 24 comments
Closed
1 task done

autoDL无法打开UI界面 #3591

zhoujinyi66 opened this issue May 6, 2024 · 24 comments
Labels
good first issue Good for newcomers solved This problem has been already solved

Comments

@zhoujinyi66
Copy link

zhoujinyi66 commented May 6, 2024

Reminder

  • I have read the README and searched the existing issues.

Reproduction

(llama_factory) root@autodl-container-eab742abf6-18fe0790:~/factory/LLaMA-Factory# llamafactory-cli webui
Running on local URL: http://127.0.0.1:7861/

Could not create share link. Missing file: /root/miniconda3/envs/llama_factory/lib/python3.10/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:

Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
Rename the downloaded file to: frpc_linux_amd64_v0.2
Move the file to this location: /root/miniconda3/envs/llama_factory/lib/python3.10/site-packages/gradio

Expected behavior

https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
这个文件好像也下载不了
该怎么弄呢

System Info

No response

Others

No response

@codemayq
Copy link
Collaborator

codemayq commented May 6, 2024

文件可以下载的
wget https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64

@codemayq codemayq added the pending This problem is yet to be addressed label May 6, 2024
@zhoujinyi66
Copy link
Author

(base) root@autodl-container-86c345b8d6-33e0bb80:~# wget https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
--2024-05-06 17:48:44-- https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
Resolving cdn-media.huggingface.co (cdn-media.huggingface.co)... 154.92.16.97, 2a03:2880:f10d:183:face:b00c:0:25de
Connecting to cdn-media.huggingface.co (cdn-media.huggingface.co)|154.92.16.97|:443...
一直连接不上啊,在本地下载又显示有病毒

@codemayq
Copy link
Collaborator

codemayq commented May 6, 2024

可能是网络问题,这个文件本地下载后上传试试,不是病毒。

@zhoujinyi66
Copy link
Author

(llama_factory) root@autodl-container-eab742abf6-18fe0790:~/factory/LLaMA-Factory# llamafactory-cli webui
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.
现在又是什么问题

@zhoujinyi66
Copy link
Author

是在服务器上运行的

@hiyouga
Copy link
Owner

hiyouga commented May 6, 2024

autodl 不支持创建 share 链接,需要映射端口到 6006 并且在控制台开启外部访问
export GRADIO_SERVER_PORT=6006

@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels May 6, 2024
@morettt
Copy link

morettt commented May 7, 2024

我也是

autodl 不支持创建共享链接,需要映射端口到 6006 并且在控制台开启外部访问 export GRADIO_SERVER_PORT=6006

webui.py我改了: server_port = int(os.environ.get("GRADIO_SERVER_PORT", "6006")) 然后autodl上面运行也输出了:

(llama) root@autodl-container-0282478d7c-f76a42c7:~/LLaMA-Factory/src# python webui.py
Running on local URL: http://0.0.0.0:6006

然后去控制台打开自定义服务进去了。但是里面全部都是文字和符号,挤得乱七八糟的。我在本地上运行完全没有问题,但在autodl就这样了。上个月我在autodl用这个项目web界面不会这样

@Anorid
Copy link

Anorid commented May 7, 2024

4d036349994867f514ab3cb055cd419
有没有试试这样的命令,在autodl上面

@hiyouga
Copy link
Owner

hiyouga commented May 7, 2024

autodl 上要安装 pip install gradio==4.10

@zhoujinyi66
Copy link
Author

(llama_factory) root@autodl-container-eab742abf6-18fe0790:~/factory/LLaMA-Factory# llamafactory-cli webui 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. 现在又是什么问题

已解决,到文件根目录下执行:

chmod +x frpc_linux_amd64_v0.2

即可

@hiyouga hiyouga added the good first issue Good for newcomers label May 7, 2024
@hiyouga hiyouga closed this as completed May 7, 2024
@morettt
Copy link

morettt commented May 7, 2024

pip安装gradio==4.10

这个方法是对的

兄弟你解决了吗?你上面发的图片和我遇到的问题一模一样

@mayaobuduyao
Copy link

mayaobuduyao commented May 8, 2024

我在学校的服务器上也遇到了这个问题,但是试了上面方法都不行,链接无法打开,请问可能是什么原因?
1715173408470

@morettt
Copy link

morettt commented May 8, 2024

pip安装gradio==4.10

这个方法是对的

你的兄弟解决了吗?你上面发的图片和我遇到的问题一模一样

使用gradio==4.10即可,先卸载gradio,再安装对应版本即可

感谢感谢

@morettt
Copy link

morettt commented May 8, 2024

autodl 上要安装 pip install gradio==4.10

红豆泥阿里嘎多

@hsbdkdn
Copy link

hsbdkdn commented May 11, 2024

我也是

autodl 不支持创建共享链接,需要映射端口到 6006 并且在控制台开启外部访问export GRADIO_SERVER_PORT=6006

webui.py 我改了: server_port = int(os.environ.get(“GRADIO_SERVER_PORT”, “6006”)) 然后autodl上面运行也输出了:
(llama) root@autodl-container-0282478d7c-f76a42c7:~/LLaMA-Factory/src# python webui.py 在本地 URL 上运行:http://0.0.0.0:6006
然后去控制台打开自定义服务进去了。但是里面全部都是文字和符号,挤得乱七八糟的。我在本地上运行完全没有问题,但在autodl就这样了。上个月我在autodl用这个项目web界面不会这样

图像

图像

新版本autodl 一样的问题

可以问一下具体怎么做吗 外部访问 我的端口拒绝访问

@wangxd15
Copy link

同样是如此问题, 安装 pip install gradio==4.10 chmod +x frpc_linux_amd64_v0.2 后解决了 No API 问题,但界面依然是这样的黑白界面。也没显示无法分享链接的错误。

@a2382625920
Copy link

autodl 不支持创建 share 链接,需要映射端口到 6006 并且在控制台开启外部访问 export GRADIO_SERVER_PORT=6006

这个方法对我有用,并且目前我的gradio使用的是最新版本

@9seven
Copy link

9seven commented Oct 11, 2024

image
我的打开会变成这样……有人知道怎么解决吗

@lwdnxu
Copy link

lwdnxu commented Oct 11, 2024

image 我的打开会变成这样……有人知道怎么解决吗

same

@9seven
Copy link

9seven commented Oct 11, 2024

image 我的打开会变成这样……有人知道怎么解决吗

same

尝试升级了gradio到最新版本,现在可以打开了 只是还需要安装oss2

@Fzkuji
Copy link

Fzkuji commented Nov 2, 2024

pip install gradio==4.44.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

13 participants