microsoft / microsoft/OmniParser

建议官方gradio_demo里把share选项默认设置为False

Open
#233 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
25.4k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/microsoft/OmniParser/blob/master/gradio_demo.py
share的值默认置为True, 强烈建议把它置为False !

1.会生成一个本地内网的可访问链接
2.同时也会生成一个形式为Running on public URL的外网链接(如下图所示) 这个有点太坑了。。。一不注意就踩坑了,一方面容易泄漏部署服务的本地数据或隐私,另一方面容易造成被安全攻击的风险

Image

涉及安全风险的选项 应在注释里特别注明或强调下风险!!!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open gradio_demo.py and locate the Gradio launch configuration where share is set to True. Change the default to False, then run the demo and verify that it no longer creates a public URL by default; the issue is complete when only local access is enabled unless sharing is explicitly requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.