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

Add --share flag to CLI command #9585

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

CorentinBrtx
Copy link

Description

Add a --share flag to the gradio CLI to allow users to share their Gradio interfaces with others instead of having to add the share=True parameter to the python object.

Closes: #6030

@CorentinBrtx CorentinBrtx changed the title Add share flag to CLI command Add --share flag to CLI command Oct 8, 2024
@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Oct 8, 2024

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
🦄 Changes detected! Details

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/257f7b88347a1d4394f4ae87847d6b856ced7940/gradio-5.1.0-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@257f7b88347a1d4394f4ae87847d6b856ced7940#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/257f7b88347a1d4394f4ae87847d6b856ced7940/gradio-client-1.6.0.tgz

Use Lite from this PR

<script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/257f7b88347a1d4394f4ae87847d6b856ced7940/dist/lite.js""></script>

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Oct 8, 2024

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio minor
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Add --share flag to CLI command

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@CorentinBrtx
Copy link
Author

Hello @abidlabs !
This is my first open-source contribution, would love to have your review to be able to merge this 🚀
Thanks !

@abidlabs
Copy link
Member

Hi @CorentinBrtx thanks for this PR! The --share flag is working as intended. However, I notice that when opening the public link, I get this error:

image

Would you be able to fix this error before we can merge this in?

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.

Add --share option to Gradio cli
3 participants