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

Allow Gradio share parameter passthrough #490

Merged
merged 4 commits into from
Feb 13, 2025

Conversation

sysradium
Copy link
Contributor

@sysradium sysradium commented Feb 4, 2025

Fixes #489

Honestly, I would have set this to False by default. But not to break the public API preserved the default behaviour by settings it to True.

Obviously if you prefer we can keep the same interface:

def launch(**kwargs):
   # ...
    demo.launch(**({"share": True, "debug": True} | kwargs))

But that is a bit excessive to me.

@sysradium sysradium marked this pull request as ready for review February 4, 2025 18:59
aymeric-roucher
aymeric-roucher previously approved these changes Feb 5, 2025
@aymeric-roucher aymeric-roucher dismissed their stale review February 5, 2025 13:46

Requested changes

sysradium and others added 2 commits February 5, 2025 20:22
Co-authored-by: Aymeric Roucher <69208727+aymeric-roucher@users.noreply.github.com>
Co-authored-by: Aymeric Roucher <69208727+aymeric-roucher@users.noreply.github.com>
@sysradium
Copy link
Contributor Author

@aymeric-roucher though technically breaks the API I agree that a False is a sane default. Thank you

@sysradium
Copy link
Contributor Author

@aymeric-roucher Someone has to click the magic merge button? :)

@aymeric-roucher aymeric-roucher merged commit b9e9438 into huggingface:main Feb 13, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

GradioUI.launch() hardcodes Shared = True and downloads a malicious reverse-proxy flagged by Corp ITRisk
2 participants