-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 cURL to view API Page and add a dedicated Guide #8445
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/8dc3501417834b1599ad9bff16cfc0b72d3105b6/gradio-4.33.0-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@8dc3501417834b1599ad9bff16cfc0b72d3105b6#subdirectory=client/python" Install Gradio JS Client from this PR npm install https://gradio-builds.s3.amazonaws.com/8dc3501417834b1599ad9bff16cfc0b72d3105b6/gradio-client-0.20.1.tgz |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
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.
Guide is great! just need to fix the new lines between tips and codeblocks
…-curl.md Co-authored-by: Ali Abdalla <[email protected]>
…-curl.md Co-authored-by: Ali Abdalla <[email protected]>
@aliabd I tested a few demos and the cURL commands worked but I think it would be great to test a variety of other demos just to make sure everything is working |
@@ -5,7 +5,7 @@ | |||
export let is_running: boolean; | |||
export let endpoint_returns: any; | |||
export let js_returns: any; | |||
export let current_language: "python" | "javascript"; | |||
export let current_language: "python" | "javascript" | "bash"; |
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.
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.
Co-authored-by: Ali Abdalla <[email protected]>
Ok @aliabd I believe I've made all of the changes! If you'd like to take another look, go ahead. I'll probably merge in ~45 min or so |
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.
Everything looks good to me!
@@ -5,7 +5,8 @@ | |||
export let is_running: boolean; | |||
export let endpoint_returns: any; | |||
export let js_returns: any; | |||
export let current_language: "python" | "javascript"; | |||
export let current_language: "python" | "javascript" | "bash"; | |||
console.log(js_returns); |
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.
causing test to fail
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.
console.log(js_returns); |
Thank you so much @aliabd! |
Adds cURL docs
Closes: #7331
Closes: #6471
Closes: #8237