mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
1e5e787999
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2.5 KiB
2.5 KiB
@gradio/paramviewer
0.4.3
Patch Changes
- Updated dependencies []:
- @gradio/atoms@0.5.3
- @gradio/statustracker@0.4.7
0.4.2
Patch Changes
- Updated dependencies [
065c5b1
]:- @gradio/utils@0.3.0
- @gradio/atoms@0.5.2
- @gradio/statustracker@0.4.6
0.4.1
Patch Changes
- Updated dependencies [
fdd1521
]:- @gradio/utils@0.2.2
- @gradio/atoms@0.5.1
- @gradio/statustracker@0.4.5
0.4.0
Features
Fixes
- #7130
e7ab406
- Fix ParamViewer css. Thanks @freddyaboulton!
0.3.0
Highlights
Custom component documentation generator (#7030 3a944ed
)
If your custom component has type hints and docstrings for both parameters and return values, you can now automatically generate a documentation page and README.md with no additional effort. Simply run the following command:
gradio cc docs
This will generate a Gradio app that you can upload to spaces providing rich documentation for potential users. The documentation page includes:
- Installation instructions.
- A live embedded demo and working code snippet, pulled from your demo app.
- An API reference for initialising the component, with types, default values and descriptions.
- An explanation of how the component affects the user's predict function inputs and outputs.
- Any additional interfaces or classes that are necessary to understand the API reference.
- Optional links to GitHub, PyPi, and Hugging Face Spaces.
A README will also be generated detailing the same information but in a format that is optimised for viewing on GitHub or PyPi!
Thanks @pngwn!