Closed xu-song closed 1 month ago
• | Name | Status | URL |
---|---|---|---|
Spaces | ready! | Spaces preview | |
Website | ready! | Website preview | |
Storybook | ready! | Storybook preview | |
:unicorn: | Changes | detected! | Details |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/7e867d8f55575d49b96f5ae00b6ad92029acc52b/gradio-4.31.5-py3-none-any.whl
Install Gradio Python Client from this PR
pip install "gradio-client @ git+https://github.com/gradio-app/gradio@7e867d8f55575d49b96f5ae00b6ad92029acc52b#subdirectory=client/python"
Package | Version |
---|---|
@gradio/highlightedtext |
minor |
gradio |
minor |
Enable hiding the inline category in HighlightedText with a
show_inline_category
argument
Maintainers or the PR author can modify the PR title to modify this entry.
Looks reasonable to me as well. Down the line, we may want to lift the restriction that:'
Only works if show_legend=False and interactive=False.
For example, it could be that a developer wants to show the categories in the legend and in inline, which this argument could enable. But its not necessary in this PR.
Looks good! It would be awesome to have a storybook test added to this. If you're not sure how to write it, let me know and I can help :)
Looks good! It would be awesome to have a storybook test added to this. If you're not sure how to write it, let me know and I can help :)
@hannahblair I'm not sure how to write a storybook test. I really appreciated if you can help.
Description
Target Issue #8356
Tests
PRs will only be merged if tests pass on CI. To run the tests locally, please set up your Gradio environment locally and run the tests:
bash scripts/run_all_tests.sh
You may need to run the linters:
bash scripts/format_backend.sh
andbash scripts/format_frontend.sh
Demo
This is a demo of tokenization.