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 css_paths, js_paths, head_paths #9524

Open
wants to merge 7 commits into
base: 5.0-dev
Choose a base branch
from
Open

Add css_paths, js_paths, head_paths #9524

wants to merge 7 commits into from

Conversation

abidlabs
Copy link
Member

@abidlabs abidlabs commented Oct 3, 2024

Based on @hysts's feedback internally, modifying the approach we are taking to providing paths for static resources

Open to feedback

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Oct 3, 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/1d32cf94cdc424801db3cf940db18e52810357ad/gradio-4.44.1-py3-none-any.whl

Install Gradio Python Client from this PR

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

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/1d32cf94cdc424801db3cf940db18e52810357ad/gradio-client-1.6.0-beta.3.tgz

Use Lite from this PR

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

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Oct 3, 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 css_paths, js_paths, head_paths

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.

@@ -1544,3 +1544,11 @@ def get_node_path():
"If you wish to use the node backend, please install node 18 and/ or set the path with the GRADIO_NODE_PATH environment variable."
)
return None


def none_or_singleton_to_list(value: Any) -> list:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use this pattern quite a bit in the library so added a helper function

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.

2 participants