mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
aee3757ad8
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
190 lines
11 KiB
Markdown
190 lines
11 KiB
Markdown
# @gradio/app
|
|
|
|
## 1.5.2
|
|
|
|
### Patch Changes
|
|
|
|
- Updated dependencies [[`a0cc9ac9`](https://github.com/gradio-app/gradio/commit/a0cc9ac931554e06dcb091158c9b9ac0cc580b6c)]:
|
|
- @gradio/dropdown@0.2.2
|
|
|
|
## 1.5.1
|
|
|
|
### Patch Changes
|
|
|
|
- Updated dependencies [[`dc86e4a7`](https://github.com/gradio-app/gradio/commit/dc86e4a7e1c40b910c74558e6f88fddf9b3292bc), [`21f1db40`](https://github.com/gradio-app/gradio/commit/21f1db40de6d1717eba97a550e11422a457ba7e9)]:
|
|
- @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](https://github.com/gradio-app/gradio/pull/5505) [`9ee20f49`](https://github.com/gradio-app/gradio/commit/9ee20f499f62c1fe5af6b8f84918b3a334eb1c8d) - Validate i18n file names with ISO-639x. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
- [#5475](https://github.com/gradio-app/gradio/pull/5475) [`c60b89b0`](https://github.com/gradio-app/gradio/commit/c60b89b0a54758a27277f0a6aa20d0653647c7c8) - Adding Central Kurdish. Thanks [@Hrazhan](https://github.com/Hrazhan)!
|
|
- [#5400](https://github.com/gradio-app/gradio/pull/5400) [`d112e261`](https://github.com/gradio-app/gradio/commit/d112e2611b0fc79ecedfaed367571f3157211387) - Allow interactive input in `gr.HighlightedText`. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
|
|
## 1.4.3
|
|
|
|
### Patch Changes
|
|
|
|
- Updated dependencies [[`6e381c4f`](https://github.com/gradio-app/gradio/commit/6e381c4f146cc8177a4e2b8e39f914f09cd7ff0c)]:
|
|
- @gradio/dataframe@0.2.2
|
|
|
|
## 1.4.2
|
|
|
|
### Fixes
|
|
|
|
- [#5447](https://github.com/gradio-app/gradio/pull/5447) [`7a4a89e5`](https://github.com/gradio-app/gradio/commit/7a4a89e5ca1dedb39e5366867501584b0c636bbb) - ensure iframe is correct size on spaces. Thanks [@pngwn](https://github.com/pngwn)!
|
|
|
|
## 1.4.1
|
|
|
|
### Patch Changes
|
|
|
|
- Updated dependencies [[`afac0006`](https://github.com/gradio-app/gradio/commit/afac0006337ce2840cf497cd65691f2f60ee5912), [`d14d63e3`](https://github.com/gradio-app/gradio/commit/d14d63e30c4af3f9c2a664fd11b0a01943a8300c), [`26fef8c7`](https://github.com/gradio-app/gradio/commit/26fef8c7f85a006c7e25cdbed1792df19c512d02)]:
|
|
- @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](https://github.com/gradio-app/gradio/pull/5267) [`119c8343`](https://github.com/gradio-app/gradio/commit/119c834331bfae60d4742c8f20e9cdecdd67e8c2) - Faster reload mode. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
|
|
- [#5373](https://github.com/gradio-app/gradio/pull/5373) [`79d8f9d8`](https://github.com/gradio-app/gradio/commit/79d8f9d891901683c5a1b7486efb44eab2478c96) - Adds `height` and `zoom_speed` parameters to `Model3D` component, as well as a button to reset the camera position. Thanks [@abidlabs](https://github.com/abidlabs)!
|
|
|
|
## 1.3.2
|
|
|
|
### Patch Changes
|
|
|
|
- Updated dependencies [[`5f25eb68`](https://github.com/gradio-app/gradio/commit/5f25eb6836f6a78ce6208b53495a01e1fc1a1d2f), [`3341148c`](https://github.com/gradio-app/gradio/commit/3341148c109b5458cc88435d27eb154210efc472), [`df090e89`](https://github.com/gradio-app/gradio/commit/df090e89f74a16e4cb2b700a1e3263cabd2bdd91)]:
|
|
- @gradio/highlightedtext@0.2.1
|
|
- @gradio/chatbot@0.2.2
|
|
- @gradio/checkbox@0.1.1
|
|
|
|
## 1.3.1
|
|
|
|
### Fixes
|
|
|
|
- [#5324](https://github.com/gradio-app/gradio/pull/5324) [`31996c99`](https://github.com/gradio-app/gradio/commit/31996c991d6bfca8cef975eb8e3c9f61a7aced19) - ensure login form has correct styles. Thanks [@pngwn](https://github.com/pngwn)!
|
|
|
|
## 1.3.0
|
|
|
|
### Highlights
|
|
|
|
#### Improve startup performance and markdown support ([#5279](https://github.com/gradio-app/gradio/pull/5279) [`fe057300`](https://github.com/gradio-app/gradio/commit/fe057300f0672c62dab9d9b4501054ac5d45a4ec))
|
|
|
|
##### 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](https://github.com/pngwn)!
|
|
|
|
#### Add `render` function to `<gradio-app>` ([#5158](https://github.com/gradio-app/gradio/pull/5158) [`804fcc05`](https://github.com/gradio-app/gradio/commit/804fcc058e147f283ece67f1f353874e26235535))
|
|
|
|
We now have an event `render` on the <gradio-app> web component, which is triggered once the embedded space has finished rendering.
|
|
|
|
```html
|
|
<script>
|
|
function handleLoadComplete() {
|
|
console.log("Embedded space has finished rendering");
|
|
}
|
|
const gradioApp = document.querySelector("gradio-app");
|
|
gradioApp.addEventListener("render", handleLoadComplete);
|
|
</script>
|
|
```
|
|
|
|
Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
|
|
### Features
|
|
|
|
- [#5215](https://github.com/gradio-app/gradio/pull/5215) [`fbdad78a`](https://github.com/gradio-app/gradio/commit/fbdad78af4c47454cbb570f88cc14bf4479bbceb) - 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](https://github.com/pngwn)!
|
|
- [#5216](https://github.com/gradio-app/gradio/pull/5216) [`4b58ea6d`](https://github.com/gradio-app/gradio/commit/4b58ea6d98e7a43b3f30d8a4cb6f379bc2eca6a8) - Update i18n tokens and locale files. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
- [#5219](https://github.com/gradio-app/gradio/pull/5219) [`e8fd4e4e`](https://github.com/gradio-app/gradio/commit/e8fd4e4ec68a6c974bc8c84b61f4a0ec50a85bc6) - Add `api_name` parameter to `gr.Interface`. Additionally, completely hide api page if show_api=False. Thanks [@freddyaboulton](https://github.com/freddyaboulton)!
|
|
- [#5264](https://github.com/gradio-app/gradio/pull/5264) [`46a2b600`](https://github.com/gradio-app/gradio/commit/46a2b600a7ff030a9ea1560b882b3bf3ad266bbc) - ensure translations for audio work correctly. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
|
|
### Fixes
|
|
|
|
- [#5285](https://github.com/gradio-app/gradio/pull/5285) [`cdfd4217`](https://github.com/gradio-app/gradio/commit/cdfd42174a9c777eaee9c1209bf8e90d8c7791f2) - Tweaks to `icon` parameter in `gr.Button()`. Thanks [@abidlabs](https://github.com/abidlabs)!
|
|
- [#5312](https://github.com/gradio-app/gradio/pull/5312) [`f769cb67`](https://github.com/gradio-app/gradio/commit/f769cb67149d8e209091508f06d87014acaed965) - only start listening for events after the components are mounted. Thanks [@pngwn](https://github.com/pngwn)!
|
|
- [#5276](https://github.com/gradio-app/gradio/pull/5276) [`502f1015`](https://github.com/gradio-app/gradio/commit/502f1015bf23b365bc32446dd2e549b0c5d0dc72) - Ensure `Blocks` translation copy renders correctly. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
|
|
## 1.2.0
|
|
|
|
### Highlights
|
|
|
|
#### Client.predict will now return the final output for streaming endpoints ([#5057](https://github.com/gradio-app/gradio/pull/5057) [`35856f8b`](https://github.com/gradio-app/gradio/commit/35856f8b54548cae7bd3b8d6a4de69e1748283b2))
|
|
|
|
### 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](https://github.com/freddyaboulton)!
|
|
|
|
### Features
|
|
|
|
- [#5025](https://github.com/gradio-app/gradio/pull/5025) [`6693660a`](https://github.com/gradio-app/gradio/commit/6693660a790996f8f481feaf22a8c49130d52d89) - Add download button to selected images in `Gallery`. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
- [#5046](https://github.com/gradio-app/gradio/pull/5046) [`5244c587`](https://github.com/gradio-app/gradio/commit/5244c5873c355cf3e2f0acb7d67fda3177ef8b0b) - Allow new lines in `HighlightedText` with `/n` and preserve whitespace. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
- [#5047](https://github.com/gradio-app/gradio/pull/5047) [`883ac364`](https://github.com/gradio-app/gradio/commit/883ac364f69d92128774ac446ce49bdf8415fd7b) - Add `step` param to `Number`. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
- [#5005](https://github.com/gradio-app/gradio/pull/5005) [`f5539c76`](https://github.com/gradio-app/gradio/commit/f5539c7618e31451420bd3228754774da14dc65f) - Enhancement: Add focus event to textbox and number component. Thanks [@JodyZ0203](https://github.com/JodyZ0203)!
|
|
- [#5136](https://github.com/gradio-app/gradio/pull/5136) [`eaa1ce14`](https://github.com/gradio-app/gradio/commit/eaa1ce14ac41de1c23321e93f11f1b03a2f3c7f4) - Enhancing Tamil Translation: Language Refinement 🌟. Thanks [@sanjaiyan-dev](https://github.com/sanjaiyan-dev)!
|
|
|
|
## 1.1.0
|
|
|
|
### Features
|
|
|
|
- [#4995](https://github.com/gradio-app/gradio/pull/4995) [`3f8c210b`](https://github.com/gradio-app/gradio/commit/3f8c210b01ef1ceaaf8ee73be4bf246b5b745bbf) - Implement left and right click in `Gallery` component and show implicit images in `Gallery` grid. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
- [#4993](https://github.com/gradio-app/gradio/pull/4993) [`dc07a9f9`](https://github.com/gradio-app/gradio/commit/dc07a9f947de44b419d8384987a02dcf94977851) - Bringing back the "Add download button for audio" PR by [@leuryr](https://github.com/leuryr). Thanks [@abidlabs](https://github.com/abidlabs)!
|
|
- [#4979](https://github.com/gradio-app/gradio/pull/4979) [`44ac8ad0`](https://github.com/gradio-app/gradio/commit/44ac8ad08d82ea12c503dde5c78f999eb0452de2) - Allow setting sketch color default. Thanks [@aliabid94](https://github.com/aliabid94)!
|