Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
41 KiB
@gradio/app
1.22.0
Features
- #7084
94aa271
- Improve rapid generation performance via UI throttling. Thanks @aliabid94! - #7148
c60ad4d
- Use Gallery as input component. Thanks @freddyaboulton!
Fixes
1.21.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!
1.20.0
Features
Fixes
- #6967
5e00162
- Make Wasm-compatible. Thanks @whitphx! - #6983
6e285be
- Fix the reloader. Thanks @aliabid94!
1.19.0
Features
1.18.0
Features
- #6839
e974cf0
- Custom JS Guide. Thanks @dawoodkhan82!
Fixes
- #6863
d406855
- Fix JS Client when app is running behind a proxy. Thanks @freddyaboulton! - #6846
48d6534
- Addshow_api
parameter to events, and fixgr.load()
. Also makes some minor improvements to the "view API" page when running on Spaces. Thanks @abidlabs!
1.17.0
Features
Fixes
- #6766
73268ee
- Improve source selection UX. Thanks @hannahblair!
1.16.2
Patch Changes
- Updated dependencies [
245d58e
,c352811
]:- @gradio/client@0.9.2
- @gradio/audio@0.6.2
- @gradio/imageeditor@0.1.5
- @gradio/annotatedimage@0.3.12
- @gradio/button@0.2.12
- @gradio/chatbot@0.5.4
- @gradio/dataset@0.1.12
- @gradio/file@0.4.2
- @gradio/fileexplorer@0.3.12
- @gradio/gallery@0.4.13
- @gradio/image@0.5.2
- @gradio/model3d@0.4.10
- @gradio/upload@0.5.5
- @gradio/uploadbutton@0.3.3
- @gradio/video@0.2.2
- @gradio/dataframe@0.4.2
- @gradio/code@0.3.2
1.16.1
Patch Changes
- Updated dependencies [
5d51fbc
,34f9431
]:- @gradio/model3d@0.4.9
- @gradio/upload@0.5.4
- @gradio/client@0.9.1
- @gradio/annotatedimage@0.3.11
- @gradio/audio@0.6.1
- @gradio/button@0.2.11
- @gradio/chatbot@0.5.3
- @gradio/code@0.3.1
- @gradio/dataframe@0.4.1
- @gradio/dataset@0.1.11
- @gradio/file@0.4.1
- @gradio/fileexplorer@0.3.11
- @gradio/gallery@0.4.12
- @gradio/image@0.5.1
- @gradio/imageeditor@0.1.4
- @gradio/uploadbutton@0.3.2
- @gradio/video@0.2.1
1.16.0
Features
- #6398
67ddd40
- Lite v4. Thanks @whitphx! - #6738
f3c4d78
- reload on css changes + fix css specificity. Thanks @pngwn!
Fixes
- #6639
9a6ff70
- Fix issue withhead
param when adding more than one script tag. Thanks @dawoodkhan82!
1.15.0
Features
1.14.0
Features
Fixes
- #6530
13ef0f0ca
- Quick fix: Make component interactive when it is in focus. Thanks @dawoodkhan82!
1.13.1
Fixes
- #6536
1bbd6cab3
- Fix undefineddata
TypeError in Blocks. Thanks @hannahblair!
1.13.0
Highlights
New ImageEditor
component (#6169 9caddc17b
)
A brand new component, completely separate from Image
that provides simple editing capabilities.
- Set background images from file uploads, webcam, or just paste!
- Crop images with an improved cropping UI. App authors can event set specific crop size, or crop ratios (
1:1
, etc) - Paint on top of any image (or no image) and erase any mistakes!
- The ImageEditor supports layers, confining draw and erase actions to that layer.
- More flexible access to data. The image component returns a composite image representing the final state of the canvas as well as providing the background and all layers as individual images.
- Fully customisable. All features can be enabled and disabled. Even the brush color swatches can be customised.
def fn(im):
im["composite"] # the full canvas
im["background"] # the background image
im["layers"] # a list of individual layers
im = gr.ImageEditor(
# decide which sources you'd like to accept
sources=["upload", "webcam", "clipboard"],
# set a cropsize constraint, can either be a ratio or a concrete [width, height]
crop_size="1:1",
# enable crop (or disable it)
transforms=["crop"],
# customise the brush
brush=Brush(
default_size="25", # or leave it as 'auto'
color_mode="fixed", # 'fixed' hides the user swatches and colorpicker, 'defaults' shows it
default_color="hotpink", # html names are supported
colors=[
"rgba(0, 150, 150, 1)", # rgb(a)
"#fff", # hex rgb
"hsl(360, 120, 120)" # in fact any valid colorstring
]
),
brush=Eraser(default_size="25")
)
Thanks @pngwn!
1.12.0
Features
- #6427
e0fc14659
- Allow google analytics to work on Spaces (and other iframe situations). Thanks @abidlabs!
Fixes
- #6254
f816136a0
- Add volume control to Audio. Thanks @hannahblair! - #6457
d00fcf89d
- Gradio custom component dev mode now detects changes to Example.svelte file. Thanks @freddyaboulton!
1.11.0
Features
Fixes
- #6383
324867f63
- Fix event target. Thanks @aliabid94!
1.10.3
Patch Changes
- Updated dependencies [
6204ccac5
,4d3aad33a
,854b482f5
,55fda81fa
,37dd335e5
,f1409f95e
]:- @gradio/image@0.3.4
- @gradio/upload@0.4.0
- @gradio/code@0.2.4
- @gradio/textbox@0.4.2
- @gradio/audio@0.5.0
- @gradio/client@0.8.0
- @gradio/gallery@0.4.5
- @gradio/row@0.1.0
- @gradio/video@0.1.4
- @gradio/annotatedimage@0.3.4
- @gradio/button@0.2.4
- @gradio/chatbot@0.4.4
- @gradio/dataframe@0.3.5
- @gradio/dataset@0.1.4
- @gradio/file@0.2.4
- @gradio/fileexplorer@0.3.4
- @gradio/model3d@0.4.2
- @gradio/uploadbutton@0.1.4
1.10.2
Patch Changes
- Updated dependencies [
4b1011bab
,bca6c2c80
,19af2806a
,d3b53a457
,3cdeabc68
,fad92c29d
]:- @gradio/chatbot@0.4.3
- @gradio/client@0.7.2
- @gradio/audio@0.4.3
- @gradio/dataframe@0.3.4
- @gradio/atoms@0.2.1
- @gradio/upload@0.3.3
- @gradio/video@0.1.3
- @gradio/annotatedimage@0.3.3
- @gradio/button@0.2.3
- @gradio/dataset@0.1.3
- @gradio/file@0.2.3
- @gradio/fileexplorer@0.3.3
- @gradio/gallery@0.4.4
- @gradio/image@0.3.3
- @gradio/model3d@0.4.1
- @gradio/uploadbutton@0.1.3
- @gradio/accordion@0.2.1
- @gradio/box@0.1.1
- @gradio/checkbox@0.2.1
- @gradio/checkboxgroup@0.3.2
- @gradio/code@0.2.3
- @gradio/colorpicker@0.2.1
- @gradio/dropdown@0.3.1
- @gradio/fallback@0.2.1
- @gradio/form@0.1.1
- @gradio/highlightedtext@0.4.1
- @gradio/html@0.1.1
- @gradio/json@0.1.1
- @gradio/label@0.2.1
- @gradio/markdown@0.3.1
- @gradio/number@0.3.1
- @gradio/plot@0.2.1
- @gradio/radio@0.3.2
- @gradio/simpledropdown@0.1.1
- @gradio/simpletextbox@0.1.1
- @gradio/slider@0.2.1
- @gradio/statustracker@0.3.1
- @gradio/textbox@0.4.1
- @gradio/row@0.1.0
1.10.1
Patch Changes
1.10.0
Features
Fixes
- #6266
e32bac894
- Fix updating interactive prop. Thanks @abidlabs! - #6213
27194a987
- Ensure the statustracker forgr.Image
displays in static mode. Thanks @pngwn! - #6234
aaa55ce85
- Video/Audio fixes. Thanks @freddyaboulton! - #6236
6bce259c5
- Ensuregr.CheckboxGroup
updates as expected. Thanks @pngwn!
1.9.2
Fixes
1.9.1
Features
- #6137
2ba14b284
- JS Param. Thanks @dawoodkhan82!
1.9.0
Features
- #5498
287fe6782
- Improve Audio Component. Thanks @pngwn! - #5498
287fe6782
- Adds the ability to build the frontend and backend of custom components in preparation for publishing to pypi usinggradio_component build
. Thanks @pngwn! - #5498
287fe6782
- Improve Video Component. Thanks @pngwn! - #5498
287fe6782
- Custom components. Thanks @pngwn! - #5498
287fe6782
- Swap websockets for SSE. Thanks @pngwn!
Fixes
- #5498
287fe6782
- Pending events behavior. Thanks @pngwn! - #5498
287fe6782
- Reinstate types that were removed in error in #5832. Thanks @pngwn!
1.9.0-beta.3
Features
- #6124
a7435ba9e
- Fix static issues with Lite on v4. Thanks @aliabd! - #6136
667802a6c
- JS Component Documentation. Thanks @freddyaboulton! - #6149
90318b1dd
- swapmode
on the frontned tointeractive
to match the backend. Thanks @pngwn! - #6118
88bccfdba
- Improve Video Component. Thanks @hannahblair! - #6126
865a22d5c
- RefactorBlocks.load()
so that it is in the same style as the other listeners. Thanks @abidlabs! - #6157
db143bdd1
- Make output components not editable if they are being updated. Thanks @dawoodkhan82! - #6069
bf127e124
- Swap websockets for SSE. Thanks @aliabid94!
1.9.0-beta.2
Features
- #6016
83e947676
- Format js in v4 branch. Thanks @freddyaboulton! - #5966
9cad2127b
- Improve Audio Component. Thanks @hannahblair! - #5955
825c9cddc
- Fix dev mode model3D. Thanks @freddyaboulton! - #6107
9a40de7bf
- Fix: Move to cache in init postprocess + Fallback Fixes. Thanks @freddyaboulton! - #6089
cd8146ba0
- Update logos for v4. Thanks @abidlabs! - #5996
9cf40f76f
- V4: Simple dropdown. Thanks @freddyaboulton! - #5990
85056de5c
- V4: Simple textbox. Thanks @freddyaboulton!
Fixes
- #6065
7d07001e8
- fix storybook. Thanks @pngwn! - #5826
ce036c5d4
- Pending events behavior. Thanks @dawoodkhan82! - #6046
dbb7de5e0
- fix tests. Thanks @pngwn! - #6076
f3f98f923
- Lite error handler. Thanks @whitphx!
1.9.0-beta.1
Patch Changes
- Updated dependencies [
174b73619
,5fbda0bd2
]:- @gradio/wasm@0.2.0-beta.1
- @gradio/audio@0.4.0-beta.7
- @gradio/image@0.3.0-beta.7
- @gradio/video@0.1.0-beta.7
- @gradio/gallery@0.4.0-beta.7
- @gradio/row@0.1.0-beta.1
1.9.0-beta.0
Features
- #5960
319c30f3f
- rererefactor frontend files. Thanks @pngwn! - #5956
f769876e0
- Apply formatter (and small refactoring) to the Lite-related frontend code. Thanks @whitphx! - #5498
85ba6de13
- Adds the ability to build the frontend and backend of custom components in preparation for publishing to pypi usinggradio_component build
. Thanks @pngwn!
Fixes
1.8.0
Features
- #5627
b67115e8e
- Lite: Make the Examples component display media files using pseudo HTTP requests to the Wasm server. Thanks @whitphx! - #5886
121f25b2d
- Lite: Fix is_self_host() to detect127.0.0.1
as localhost as well. Thanks @whitphx!
1.7.1
Patch Changes
- Updated dependencies [
796145e2c
]:- @gradio/client@0.5.1
- @gradio/file@0.2.1
- @gradio/fileexplorer@0.2.1
- @gradio/uploadbutton@0.0.11
1.7.0
Highlights
new FileExplorer
component (#5672 e4a307ed6
)
Thanks to a new capability that allows components to communicate directly with the server without passing data via the value, we have created a new FileExplorer
component.
This component allows you to populate the explorer by passing a glob, but only provides the selected file(s) in your prediction function.
Users can then navigate the virtual filesystem and select files which will be accessible in your predict function. This component will allow developers to build more complex spaces, with more flexible input options.
For more information check the FileExplorer
documentation.
Thanks @aliabid94!
Fixes
- #5794
f096c3ae1
- Throw helpful error when media devices are not found. Thanks @hannahblair!
1.6.4
Features
1.6.3
Patch Changes
- Updated dependencies [
abb5e9df4
,e842a561a
,8f0fed857
,502054848
,2a5b9e03b
]:- @gradio/gallery@0.4.1
- @gradio/chatbot@0.5.0
- @gradio/dataframe@0.3.0
- @gradio/markdown@0.3.0
- @gradio/icons@0.2.0
- @gradio/annotatedimage@0.2.1
- @gradio/atoms@0.1.3
- @gradio/audio@0.3.6
- @gradio/code@0.2.1
- @gradio/dropdown@0.3.1
- @gradio/file@0.1.5
- @gradio/form@0.0.6
- @gradio/highlightedtext@0.3.2
- @gradio/image@0.3.1
- @gradio/json@0.1.1
- @gradio/label@0.2.1
- @gradio/model3d@0.2.3
- @gradio/plot@0.2.1
- @gradio/statustracker@0.2.1
- @gradio/textbox@0.4.1
- @gradio/timeseries@0.0.7
- @gradio/upload@0.3.1
- @gradio/video@0.0.10
- @gradio/accordion@0.1.1
- @gradio/box@0.0.5
- @gradio/checkbox@0.2.1
- @gradio/checkboxgroup@0.3.1
- @gradio/colorpicker@0.1.3
- @gradio/html@0.0.5
- @gradio/number@0.3.1
- @gradio/radio@0.3.1
- @gradio/slider@0.2.1
- @gradio/row@0.0.1
- @gradio/button@0.2.1
- @gradio/uploadbutton@0.0.8
1.6.2
Features
- #5721
84e03fe50
- Adds copy buttons to website, and better descriptions to API Docs. Thanks @aliabd!
Fixes
- #5705
78e7cf516
- ensure internal data has updated before dispatchingsuccess
orthen
events. Thanks @pngwn! - #5726
96c4b97c7
- Adjust translation. Thanks @ylhsieh!
1.6.1
Patch Changes
- Updated dependencies [
ee8eec1e5
]:- @gradio/markdown@0.2.2
- @gradio/chatbot@0.4.1
- @gradio/dataframe@0.2.4
1.6.0
Features
- #5639
e1874aff8
- Addgr.on
listener method. Thanks @aliabid94! - #5554
75ddeb390
- Accessibility Improvements. Thanks @hannahblair!
1.5.4
Features
- #5514
52f783175
- refactor: Use package.json for version management. Thanks @DarhkVoyd!
1.5.3
Fixes
- #5562
50d9747d0
- chore(deps): update dependency iframe-resizer to v4.3.7. Thanks @renovate! - #5550
4ed5902e7
- Adding basque language. Thanks @EkhiAzur!
1.5.2
Patch Changes
- Updated dependencies [
a0cc9ac9
]:- @gradio/dropdown@0.2.2
1.5.1
Patch Changes
- Updated dependencies [
dc86e4a7
,21f1db40
]:- @gradio/gallery@0.3.3
- @gradio/image@0.2.3
- @gradio/dropdown@0.2.1
- @gradio/row@0.0.1
- @gradio/video@0.0.7
1.5.0
Features
- #5505
9ee20f49
- Validate i18n file names with ISO-639x. Thanks @hannahblair! - #5475
c60b89b0
- Adding Central Kurdish. Thanks @Hrazhan! - #5400
d112e261
- Allow interactive input ingr.HighlightedText
. Thanks @hannahblair!
1.4.3
Patch Changes
- Updated dependencies [
6e381c4f
]:- @gradio/dataframe@0.2.2
1.4.2
Fixes
1.4.1
Patch Changes
- Updated dependencies [
afac0006
,d14d63e3
,26fef8c7
]:- @gradio/dataframe@0.2.0
- @gradio/markdown@0.2.0
- @gradio/statustracker@0.2.0
- @gradio/theme@0.1.0
- @gradio/textbox@0.2.0
- @gradio/client@0.3.1
- @gradio/chatbot@0.3.1
- @gradio/accordion@0.0.4
- @gradio/annotatedimage@0.1.2
- @gradio/audio@0.3.2
- @gradio/checkbox@0.1.3
- @gradio/checkboxgroup@0.1.2
- @gradio/code@0.1.2
- @gradio/colorpicker@0.1.2
- @gradio/dropdown@0.1.3
- @gradio/file@0.1.2
- @gradio/gallery@0.3.2
- @gradio/highlightedtext@0.2.3
- @gradio/html@0.0.4
- @gradio/image@0.2.2
- @gradio/json@0.0.5
- @gradio/label@0.1.2
- @gradio/model3d@0.2.1
- @gradio/number@0.2.2
- @gradio/plot@0.1.2
- @gradio/radio@0.1.2
- @gradio/slider@0.1.2
- @gradio/timeseries@0.0.5
- @gradio/video@0.0.6
- @gradio/utils@0.1.1
- @gradio/uploadbutton@0.0.5
- @gradio/row@0.0.1
- @gradio/atoms@0.1.2
- @gradio/button@0.1.3
- @gradio/form@0.0.5
- @gradio/tabitem@0.0.4
- @gradio/tabs@0.0.5
- @gradio/box@0.0.4
- @gradio/upload@0.2.1
1.4.0
Features
- #5267
119c8343
- Faster reload mode. Thanks @freddyaboulton! - #5373
79d8f9d8
- Addsheight
andzoom_speed
parameters toModel3D
component, as well as a button to reset the camera position. Thanks @abidlabs!
1.3.2
Patch Changes
- Updated dependencies [
5f25eb68
,3341148c
,df090e89
]:- @gradio/highlightedtext@0.2.1
- @gradio/chatbot@0.2.2
- @gradio/checkbox@0.1.1
1.3.1
Fixes
1.3.0
Highlights
Improve startup performance and markdown support (#5279 fe057300
)
Improved markdown support
We now have better support for markdown in gr.Markdown
and gr.Dataframe
. Including syntax highlighting and Github Flavoured Markdown. We also have more consistent markdown behaviour and styling.
Various performance improvements
These improvements will be particularly beneficial to large applications.
- Rather than attaching events manually, they are now delegated, leading to a significant performance improvement and addressing a performance regression introduced in a recent version of Gradio. App startup for large applications is now around twice as fast.
- Optimised the mounting of individual components, leading to a modest performance improvement during startup (~30%).
- Corrected an issue that was causing markdown to re-render infinitely.
- Ensured that the
gr.3DModel
does re-render prematurely.
Thanks @pngwn!
Add render
function to <gradio-app>
(#5158 804fcc05
)
We now have an event render
on the web component, which is triggered once the embedded space has finished rendering.
<script>
function handleLoadComplete() {
console.log("Embedded space has finished rendering");
}
const gradioApp = document.querySelector("gradio-app");
gradioApp.addEventListener("render", handleLoadComplete);
</script>
Thanks @hannahblair!
Features
- #5215
fbdad78a
- Lazy load interactive or static variants of a component individually, rather than loading both variants regardless. This change will improve performance for many applications. Thanks @pngwn! - #5216
4b58ea6d
- Update i18n tokens and locale files. Thanks @hannahblair! - #5219
e8fd4e4e
- Addapi_name
parameter togr.Interface
. Additionally, completely hide api page if show_api=False. Thanks @freddyaboulton! - #5264
46a2b600
- ensure translations for audio work correctly. Thanks @hannahblair!
Fixes
- #5285
cdfd4217
- Tweaks toicon
parameter ingr.Button()
. Thanks @abidlabs! - #5312
f769cb67
- only start listening for events after the components are mounted. Thanks @pngwn! - #5276
502f1015
- EnsureBlocks
translation copy renders correctly. Thanks @hannahblair!
1.2.0
Highlights
Client.predict will now return the final output for streaming endpoints (#5057 35856f8b
)
This is a breaking change (for gradio_client only)!
Previously, Client.predict
would only return the first output of an endpoint that streamed results. This was causing confusion for developers that wanted to call these streaming demos via the client.
We realize that developers using the client don't know the internals of whether a demo streams or not, so we're changing the behavior of predict to match developer expectations.
Using Client.predict
will now return the final output of a streaming endpoint. This will make it even easier to use gradio apps via the client.
Thanks @freddyaboulton!
Features
- #5025
6693660a
- Add download button to selected images inGallery
. Thanks @hannahblair! - #5046
5244c587
- Allow new lines inHighlightedText
with/n
and preserve whitespace. Thanks @hannahblair! - #5047
883ac364
- Addstep
param toNumber
. Thanks @hannahblair! - #5005
f5539c76
- Enhancement: Add focus event to textbox and number component. Thanks @JodyZ0203! - #5136
eaa1ce14
- Enhancing Tamil Translation: Language Refinement 🌟. Thanks @sanjaiyan-dev!
1.1.0
Features
- #4995
3f8c210b
- Implement left and right click inGallery
component and show implicit images inGallery
grid. Thanks @hannahblair! - #4993
dc07a9f9
- Bringing back the "Add download button for audio" PR by @leuryr. Thanks @abidlabs! - #4979
44ac8ad0
- Allow setting sketch color default. Thanks @aliabid94!