Closed aliabd closed 2 weeks ago
• | Name | Status | URL |
---|---|---|---|
Spaces | Spaces preview | ||
Website | Website preview | ||
Storybook | Storybook preview | ||
:unicorn: | Changes | Details |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/213428d96af92300dc4ae3abf54b8c22d92d86c8/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@213428d96af92300dc4ae3abf54b8c22d92d86c8#subdirectory=client/python"
Install Gradio JS Client from this PR
npm install https://gradio-builds.s3.amazonaws.com/213428d96af92300dc4ae3abf54b8c22d92d86c8/gradio-client-0.20.1.tgz
Package | Version |
---|---|
@gradio/app |
patch |
gradio |
patch |
Support Bash in Api Recorder
Maintainers or the PR author can modify the PR title to modify this entry.
Thanks for taking care of this @aliabd! I like the suggestion of saving the event_id to a variable so that the snippet is completely copy-able. Could we make the regular code snippet like that as wells? I do think we should avoid jq
but it should be pretty easy to do this with awk
which is installed by default in most OS-es
Made the changes if you can take another look @abidlabs
Creates API recording snippets for bash like with js and python. There was a bit of a challenge given two requests are required and the event_id is needed for the second. To keep the snippet copy-paste-able without changes I opted for using jq but i'm not sure that was the right call since the user may not have it installed already. Open to removing that.
Also noticed a bug with the copy button on recording snippets. It would always just copy the last of the three languages to mount. Very weird. I fixed it in a bit of a roundabout way but it works as expected now.
closes: #8457