Closed pngwn closed 3 months ago
β’ | Name | Status | URL |
---|---|---|---|
Spaces | ready! | Spaces preview | |
Website | ready! | Website preview | |
Storybook | building... | ||
:unicorn: | Changes | skipped! | Workflow log |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/0fdfb9856e3fdd98e3e8a439b5b9f42b95e32d9d/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@0fdfb9856e3fdd98e3e8a439b5b9f42b95e32d9d#subdirectory=client/python"
Install Gradio JS Client from this PR
npm install https://gradio-builds.s3.amazonaws.com/0fdfb9856e3fdd98e3e8a439b5b9f42b95e32d9d/gradio-client-1.0.0.tgz
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@gradio/client@1.0.0
Highlights
Clients 1.0 Launch! (#8468
7cc0a0c
)We're excited to unveil the first major release of the Gradio clients. We've made it even easier to turn any Gradio application into a production endpoint thanks to the clients' ergonomic, transparent, and portable design.
Ergonomic API π
Stream From a Gradio app in 5 lines
Use the
submit
method to get a job you can iterate over:Use the same keyword arguments as the app
Better Error Messages
If something goes wrong in the upstream app, the client will raise the same exception as the app provided that
show_error=True
in the original app'slaunch()
function, or it's agr.Error
exception.Transparent Design πͺ
Anything you can do in the UI, you can do with the client:
Here's an example showing how to display the queue position of a pending job:
Portable Design βΊοΈ
The client can run from pretty much any python and javascript environment (node, deno, the browser, Service Workers).
Here's an example using the client from a Flask server using gevent:
1.0 Migration Guide and Breaking Changes
Python
serialize
argument of theClient
class was removed. Has no effect.upload_files
argument of theClient
was removed.handle_file
method. Example:output_dir
argument was removed. It is not specified in thedownload_files
argument.Javascript The client has been redesigned entirely. It was refactored from a function into a class. An instance can now be constructed by awaiting the
connect
method.The app variable has the same methods as the python class (
submit
,predict
,view_api
,duplicate
).Additional Changes
file(...)
in the Client, and some fixes togr.load()
as well.data
in JS client.eventSource_Factory
andfetch_implementation
.#7926 - Fixes streaming event race condition.
Thanks @freddyaboulton!
Features
48eeea4
- Refactor Cancelling Logic To Use /cancel. Thanks @freddyaboulton!Fixes
d5a9604
- Fix js client bundle. Thanks @pngwn!9d2d605
- Change client submit API to be an AsyncIterable and support more platforms. Thanks @pngwn!6447dfa
- Improve file handling in JS Client. Thanks @hannahblair!63d36fb
- Handle gradio apps usingstate
in the JS Client. Thanks @hannahblair!gradio_client@1.0.0
Highlights
Clients 1.0 Launch! (#8468
7cc0a0c
)We're excited to unveil the first major release of the Gradio clients. We've made it even easier to turn any Gradio application into a production endpoint thanks to the clients' ergonomic, transparent, and portable design.
Ergonomic API π
Stream From a Gradio app in 5 lines
Use the
submit
method to get a job you can iterate over:Use the same keyword arguments as the app
Better Error Messages
If something goes wrong in the upstream app, the client will raise the same exception as the app provided that
show_error=True
in the original app'slaunch()
function, or it's agr.Error
exception.Transparent Design πͺ
Anything you can do in the UI, you can do with the client:
Here's an example showing how to display the queue position of a pending job:
Portable Design βΊοΈ
The client can run from pretty much any python and javascript environment (node, deno, the browser, Service Workers).
Here's an example using the client from a Flask server using gevent:
1.0 Migration Guide and Breaking Changes
Python
serialize
argument of theClient
class was removed. Has no effect.upload_files
argument of theClient
was removed.handle_file
method. Example:output_dir
argument was removed. It is not specified in thedownload_files
argument.Javascript The client has been redesigned entirely. It was refactored from a function into a class. An instance can now be constructed by awaiting the
connect
method.The app variable has the same methods as the python class (
submit
,predict
,view_api
,duplicate
).Additional Changes
file(...)
in the Client, and some fixes togr.load()
as well.data
in JS client.eventSource_Factory
andfetch_implementation
.#7926 - Fixes streaming event race condition.
Thanks @freddyaboulton!
Features
2cd02ff
- Remove deprecated parameters from Python Client. Thanks @abidlabs!gradio@4.34.0
Features
48eeea4
- Refactor Cancelling Logic To Use /cancel. Thanks @freddyaboulton!8628899
- Support Bash in Api Recorder. Thanks @aliabd!96d8de2
- add delete event toFile
component. Thanks @pngwn!2cd02ff
- Remove deprecated parameters from Python Client. Thanks @abidlabs!8ca93d4
- Improve design of api recorder. Thanks @aliabd!5c8915b
- Add cURL to view API Page and add a dedicated Guide. Thanks @abidlabs!Fixes
d5a9604
- Fix js client bundle. Thanks @pngwn!9d2d605
- Change client submit API to be an AsyncIterable and support more platforms. Thanks @pngwn!6447dfa
- Improve file handling in JS Client. Thanks @hannahblair!63d36fb
- Handle gradio apps usingstate
in the JS Client. Thanks @hannahblair!@gradio/audio@0.11.8
Dependency updates
@gradio/button@0.2.41
Dependency updates
@gradio/chatbot@0.10.9
Dependency updates
@gradio/code@0.6.9
Dependency updates
@gradio/dataframe@0.8.8
Dependency updates
@gradio/dataset@0.1.41
Dependency updates
@gradio/downloadbutton@0.1.18
Dependency updates
@gradio/file@0.8.0
Features
96d8de2
- add delete event toFile
component. Thanks @pngwn!Fixes
9d2d605
- Change client submit API to be an AsyncIterable and support more platforms. Thanks @pngwn!Dependency updates
@gradio/gallery@0.10.8
Dependency updates
@gradio/image@0.11.8
Dependency updates
@gradio/imageeditor@0.7.8
Dependency updates
@gradio/lite@4.34.0
Dependency updates
@gradio/model3d@0.10.8
Dependency updates
@gradio/multimodaltextbox@0.4.9
Dependency updates
@gradio/preview@0.9.1
Fixes
63d36fb
- Handle gradio apps usingstate
in the JS Client. Thanks @hannahblair!@gradio/simpleimage@0.5.8
Dependency updates
@gradio/tootils@0.5.0
Features
96d8de2
- add delete event toFile
component. Thanks @pngwn!Dependency updates
@gradio/upload@0.11.0
Features
96d8de2
- add delete event toFile
component. Thanks @pngwn!Dependency updates
@gradio/uploadbutton@0.6.9
Dependency updates
@gradio/video@0.8.8
Dependency updates
website@0.31.3
Features
a9e6595
- Tweak meta titles and descriptions for clients. Thanks @aliabd!Dependency updates
@gradio/annotatedimage@0.6.8
Dependency updates
@gradio/app@1.36.0
Features
48eeea4
- Refactor Cancelling Logic To Use /cancel. Thanks @freddyaboulton!8628899
- Support Bash in Api Recorder. Thanks @aliabd!2cd02ff
- Remove deprecated parameters from Python Client. Thanks @abidlabs!8ca93d4
- Improve design of api recorder. Thanks @aliabd!5c8915b
- Add cURL to view API Page and add a dedicated Guide. Thanks @abidlabs!Fixes
9d2d605
- Change client submit API to be an AsyncIterable and support more platforms. Thanks @pngwn!63d36fb
- Handle gradio apps usingstate
in the JS Client. Thanks @hannahblair!Dependency updates
@gradio/fileexplorer@0.4.9
Dependency updates