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

[BUG] 无法生成分享链接 #959

Open
1 task done
ArlanCooper opened this issue May 8, 2023 · 8 comments
Open
1 task done

[BUG] 无法生成分享链接 #959

ArlanCooper opened this issue May 8, 2023 · 8 comments

Comments

@ArlanCooper
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

我这边,运行web_demo.py
修改下面的share参数为True,如下:

demo.queue().launch(share=True, inbrowser=True)

但是报错:
Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Explicitly passing a revision is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision.
Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:15<00:00, 1.90s/it]
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
^CKeyboard interruption in main thread... closing server.

自己curl https://status.gradio.app 是有结果的,没问题的

Expected Behavior

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
^CKeyboard interruption in main thread... closing server.

Steps To Reproduce

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
^CKeyboard interruption in main thread... closing server.

Environment

- OS:linux centos
- Python:3.7.9
- Transformers:4.27.1
- PyTorch:1.13.1
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : True

Anything else?

no

@wzhiqing
Copy link

wzhiqing commented May 8, 2023

我也遇到一样的问题,有人知道怎么解决么?

@xiaoToby
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

我这边,运行web_demo.py 修改下面的share参数为True,如下:

demo.queue().launch(share=True, inbrowser=True)

但是报错: Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing a revision is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:15<00:00, 1.90s/it] 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 ^CKeyboard interruption in main thread... closing server.

自己curl https://status.gradio.app 是有结果的,没问题的

Expected Behavior

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 ^CKeyboard interruption in main thread... closing server.

Steps To Reproduce

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 ^CKeyboard interruption in main thread... closing server.

Environment

- OS:linux centos
- Python:3.7.9
- Transformers:4.27.1
- PyTorch:1.13.1
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : True

Anything else?

no

如果是公网,你需要去gradio升级用户权限(给money)
如果是局域网内分享,在demo.queue().launch(server_name='0.0.0.0',server_port = xxxx), 端口也可以是使用默认的7860. 其他用户就能通过访问你的IP:Port访问gradio

@ArlanCooper
Copy link
Author

是局域网分享,不管端口号设定成什么样,都是无法生成分享的,ip:port无法分享的

@BillLucky
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

我这边,运行web_demo.py 修改下面的share参数为True,如下:

demo.queue().launch(share=True, inbrowser=True)

但是报错: Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing a revision is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing a revision is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:15<00:00, 1.90s/it] 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 ^CKeyboard interruption in main thread... closing server.
自己curl https://status.gradio.app 是有结果的,没问题的

Expected Behavior

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 ^CKeyboard interruption in main thread... closing server.

Steps To Reproduce

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 ^CKeyboard interruption in main thread... closing server.

Environment

- OS:linux centos
- Python:3.7.9
- Transformers:4.27.1
- PyTorch:1.13.1
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : True

Anything else?

no

如果是公网,你需要去gradio升级用户权限(给money) 如果是局域网内分享,在demo.queue().launch(server_name='0.0.0.0',server_port = xxxx), 端口也可以是使用默认的7860. 其他用户就能通过访问你的IP:Port访问gradio

赞一个,好使。

@wml1993
Copy link

wml1993 commented May 16, 2023

你们慢吗?用web感觉速度很慢啊,一个个字输出,一个句子要两分钟以上。

@BillLucky
Copy link

你们慢吗?用web感觉速度很慢啊,一个个字输出,一个句子要两分钟以上。

推理用了几张卡?什么卡?

@Duanexiao
Copy link

我也遇到一样的问题,有人知道怎么解决么?

只要能访问外网,手动下载frpc工具就好了。比如这个:
/root/miniconda3/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2
路径换成对应的,frpc_linux_amd64_v0.2是从/root/miniconda3/lib/python3.9/site-packages/gradio/tunneling.py文件可以
看出这个文件名。下载好后记得赋予文件执行权限,chmod +x frpc_linux_amd64_v0.2既可

@datuizhuang
Copy link

我也遇到一样的问题,有人知道怎么解决么?

只要能访问外网,手动下载frpc工具就好了。比如这个: /root/miniconda3/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2 路径换成对应的,frpc_linux_amd64_v0.2是从/root/miniconda3/lib/python3.9/site-packages/gradio/tunneling.py文件可以 看出这个文件名。下载好后记得赋予文件执行权限,chmod +x frpc_linux_amd64_v0.2既可

这个文件下载提示有病毒啊,会不会在服务器上造成啥漏洞。。。公司可不敢乱试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants