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
Adds support for kwargs and default arguments in the python client, and improves how parameter information is displayed in the "view API" page #7732
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
b7e02df
changes
abidlabs 56b5d78
changes
abidlabs fe9f6c4
add changeset
gradio-pr-bot f834f62
improvements to api docs ui
abidlabs e0c8bc6
Merge branch 'api-params' of github.com:gradio-app/gradio into api-pa…
abidlabs b84f7b2
add changeset
gradio-pr-bot fe49d7f
ux design work
abidlabs c66ad14
Merge branch 'api-params' of github.com:gradio-app/gradio into api-pa…
abidlabs e3480c3
further styling
abidlabs 4c8162e
feedback
abidlabs c17c8c7
add changeset
gradio-pr-bot 27963d1
Merge branch 'main' into api-params
abidlabs 337531d
get parameter name
abidlabs fc08155
simplify
abidlabs bf2cbc0
fix code snippet
abidlabs 769efc7
construct args
abidlabs c8fa79e
add changeset
gradio-pr-bot 98f0a5e
construct_args
abidlabs d570799
Merge branch 'api-params' of github.com:gradio-app/gradio into api-pa…
abidlabs 2dd80d6
utils
abidlabs 7645574
changes
abidlabs a3712c9
add catches
abidlabs 8f4030d
fixes
abidlabs 461392a
valid
abidlabs 5dfea67
fix tests
abidlabs c22472f
js lint
abidlabs 12db580
add tests
abidlabs 6cb9972
add changeset
gradio-pr-bot 36ae1da
format
abidlabs f15f9f4
Merge branch 'api-params' of github.com:gradio-app/gradio into api-pa…
abidlabs edb0947
client
abidlabs 1c7c8d9
doc
abidlabs f6d4758
fixes
abidlabs e54303e
changes
abidlabs e23908c
Merge branch 'main' into api-params
abidlabs 5d1a49e
api docs fixes
abidlabs fb1b3b7
Merge branch 'api-params' of github.com:gradio-app/gradio into api-pa…
abidlabs d81bf76
fix .view_api()
abidlabs 50d11d3
Merge branch 'main' into api-params
abidlabs ffe1da8
updating guide wip
abidlabs 17102fb
guide
abidlabs 45f2830
updated guides'
abidlabs 95fb015
fix
abidlabs 767f86f
guide fixes
abidlabs 2be1a7d
filepath
abidlabs 2c59e56
address review
abidlabs File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@gradio/app": minor | ||
"@gradio/atoms": minor | ||
"gradio": minor | ||
"gradio_client": minor | ||
--- | ||
|
||
feat:Adds support for kwargs and default arguments in the python client, and improves how parameter information is displayed in the "view API" page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to traverse the value here to only pull out the actual filepath or url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the view API page takes care of this automatically:
but the
.view_api()
function does notThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix in the
.view_api()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea sorry that's what I meant!