2023-07-27 05:10:24 +08:00
# @gradio/upload
2023-11-14 11:19:34 +08:00
## 0.4.1
### Patch Changes
- Updated dependencies [[`324867f63` ](https://github.com/gradio-app/gradio/commit/324867f63c920113d89a565892aa596cf8b1e486 )]:
- @gradio/client@0 .8.1
- @gradio/upload@0 .4.1
2023-11-11 07:12:33 +08:00
## 0.4.0
### Features
2023-11-14 11:19:34 +08:00
- [#6356 ](https://github.com/gradio-app/gradio/pull/6356 ) [`854b482f5` ](https://github.com/gradio-app/gradio/commit/854b482f598e0dc47673846631643c079576da9c ) - Redesign file upload. Thanks [@hannahblair ](https://github.com/hannahblair )!
- [#6307 ](https://github.com/gradio-app/gradio/pull/6307 ) [`f1409f95e` ](https://github.com/gradio-app/gradio/commit/f1409f95ed39c5565bed6a601e41f94e30196a57 ) - Provide status updates on file uploads. Thanks [@freddyaboulton ](https://github.com/freddyaboulton )!
2023-11-11 07:12:33 +08:00
2023-11-08 07:50:13 +08:00
## 0.3.3
### Fixes
2023-11-14 11:19:34 +08:00
- [#6279 ](https://github.com/gradio-app/gradio/pull/6279 ) [`3cdeabc68` ](https://github.com/gradio-app/gradio/commit/3cdeabc6843000310e1a9e1d17190ecbf3bbc780 ) - Ensure source selection does not get hidden in overflow. Thanks [@hannahblair ](https://github.com/hannahblair )!
2023-11-08 07:50:13 +08:00
2023-11-04 03:16:42 +08:00
## 0.3.2
### Fixes
2023-11-14 11:19:34 +08:00
- [#6234 ](https://github.com/gradio-app/gradio/pull/6234 ) [`aaa55ce85` ](https://github.com/gradio-app/gradio/commit/aaa55ce85e12f95aba9299445e9c5e59824da18e ) - Video/Audio fixes. Thanks [@freddyaboulton ](https://github.com/freddyaboulton )!
2023-11-04 03:16:42 +08:00
2023-10-31 23:25:11 +08:00
## 0.3.1
### Patch Changes
- Updated dependencies [[`2ba14b284` ](https://github.com/gradio-app/gradio/commit/2ba14b284f908aa13859f4337167a157075a68eb )]:
- @gradio/client@0 .7.1
- @gradio/upload@0 .3.1
2023-10-31 21:20:18 +08:00
## 0.3.0
### Features
2023-10-31 23:25:11 +08:00
- [#5498 ](https://github.com/gradio-app/gradio/pull/5498 ) [`287fe6782` ](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7 ) - fix circular dependency with client + upload. Thanks [@pngwn ](https://github.com/pngwn )!
- [#5498 ](https://github.com/gradio-app/gradio/pull/5498 ) [`287fe6782` ](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7 ) - Image v4. Thanks [@pngwn ](https://github.com/pngwn )!
- [#5498 ](https://github.com/gradio-app/gradio/pull/5498 ) [`287fe6782` ](https://github.com/gradio-app/gradio/commit/287fe6782825479513e79a5cf0ba0fbfe51443d7 ) - Custom components. Thanks [@pngwn ](https://github.com/pngwn )!
2023-10-31 21:20:18 +08:00
2023-10-31 12:46:02 +08:00
## 0.3.0-beta.6
2023-10-18 14:38:35 +08:00
2023-10-31 12:46:02 +08:00
### Features
2023-10-31 23:25:11 +08:00
- [#6143 ](https://github.com/gradio-app/gradio/pull/6143 ) [`e4f7b4b40` ](https://github.com/gradio-app/gradio/commit/e4f7b4b409323b01aa01b39e15ce6139e29aa073 ) - fix circular dependency with client + upload. Thanks [@pngwn ](https://github.com/pngwn )!
- [#6136 ](https://github.com/gradio-app/gradio/pull/6136 ) [`667802a6c` ](https://github.com/gradio-app/gradio/commit/667802a6cdbfb2ce454a3be5a78e0990b194548a ) - JS Component Documentation. Thanks [@freddyaboulton ](https://github.com/freddyaboulton )!
- [#6094 ](https://github.com/gradio-app/gradio/pull/6094 ) [`c476bd5a5` ](https://github.com/gradio-app/gradio/commit/c476bd5a5b70836163b9c69bf4bfe068b17fbe13 ) - Image v4. Thanks [@pngwn ](https://github.com/pngwn )!
2023-10-31 12:46:02 +08:00
## 0.3.0-beta.5
### Features
2023-10-31 23:25:11 +08:00
- [#6044 ](https://github.com/gradio-app/gradio/pull/6044 ) [`9053c95a1` ](https://github.com/gradio-app/gradio/commit/9053c95a10de12aef572018ee37c71106d2da675 ) - Simplify File Component. Thanks [@freddyaboulton ](https://github.com/freddyaboulton )!
2023-10-31 12:46:02 +08:00
### Fixes
2023-10-31 23:25:11 +08:00
- [#6046 ](https://github.com/gradio-app/gradio/pull/6046 ) [`dbb7de5e0` ](https://github.com/gradio-app/gradio/commit/dbb7de5e02c53fee05889d696d764d212cb96c74 ) - fix tests. Thanks [@pngwn ](https://github.com/pngwn )!
2023-10-31 12:46:02 +08:00
## 0.3.0-beta.4
### Features
2023-10-18 14:38:35 +08:00
2023-10-31 23:25:11 +08:00
- [#5938 ](https://github.com/gradio-app/gradio/pull/5938 ) [`13ed8a485` ](https://github.com/gradio-app/gradio/commit/13ed8a485d5e31d7d75af87fe8654b661edcca93 ) - V4: Use beta release versions for '@gradio' packages. Thanks [@freddyaboulton ](https://github.com/freddyaboulton )!
2023-10-18 14:38:35 +08:00
2023-10-17 04:30:41 +08:00
## 0.3.3
### Patch Changes
- Updated dependencies [[`e70805d54` ](https://github.com/gradio-app/gradio/commit/e70805d54cc792452545f5d8eccc1aa0212a4695 )]:
- @gradio/atoms@0 .2.0
2023-10-06 05:10:45 +08:00
## 0.3.2
### Patch Changes
- Updated dependencies []:
- @gradio/atoms@0 .1.4
2023-10-03 11:55:55 +08:00
## 0.3.1
### Patch Changes
- Updated dependencies [[`8f0fed857` ](https://github.com/gradio-app/gradio/commit/8f0fed857d156830626eb48b469d54d211a582d2 )]:
- @gradio/icons@0 .2.0
- @gradio/atoms@0 .1.3
2023-09-27 05:50:39 +08:00
## 0.3.0
### Features
2023-10-03 11:55:55 +08:00
- [#5554 ](https://github.com/gradio-app/gradio/pull/5554 ) [`75ddeb390` ](https://github.com/gradio-app/gradio/commit/75ddeb390d665d4484667390a97442081b49a423 ) - Accessibility Improvements. Thanks [@hannahblair ](https://github.com/hannahblair )!
2023-09-27 05:50:39 +08:00
2023-09-08 04:26:14 +08:00
## 0.2.1
### Patch Changes
- Updated dependencies []:
- @gradio/atoms@0 .1.2
2023-09-02 08:27:32 +08:00
## 0.2.0
### Features
2023-09-08 04:26:14 +08:00
- [#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 )!
2023-09-02 08:27:32 +08:00
2023-08-24 06:41:08 +08:00
## 0.1.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.
2023-09-08 04:26:14 +08:00
Thanks [@pngwn ](https://github.com/pngwn )!
2023-08-24 06:41:08 +08:00
### Features
2023-09-08 04:26:14 +08:00
- [#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 )!
2023-08-24 06:41:08 +08:00
### Fixes
2023-09-08 04:26:14 +08:00
- [#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 )!
2023-08-24 06:41:08 +08:00
2023-08-11 04:59:00 +08:00
## 0.0.3
### Fixes
- [#5077 ](https://github.com/gradio-app/gradio/pull/5077 ) [`667875b2` ](https://github.com/gradio-app/gradio/commit/667875b2441753e74d25bd9d3c8adedd8ede11cd ) - Live audio streaming output
highlight:
#### Now supports loading streamed outputs
Allows users to use generators to stream audio out, yielding consecutive chunks of audio. Requires `streaming=True` to be set on the output audio.
```python
import gradio as gr
from pydub import AudioSegment
def stream_audio(audio_file):
audio = AudioSegment.from_mp3(audio_file)
i = 0
chunk_size = 3000
2023-09-08 04:26:14 +08:00
2023-08-11 04:59:00 +08:00
while chunk_size*i < len ( audio ) :
chunk = audio[chunk_size*i:chunk_size*(i+1)]
i += 1
if chunk:
file = f"/tmp/{i}.mp3"
2023-09-08 04:26:14 +08:00
chunk.export(file, format="mp3")
2023-08-11 04:59:00 +08:00
yield file
2023-09-08 04:26:14 +08:00
2023-08-11 04:59:00 +08:00
demo = gr.Interface(
fn=stream_audio,
inputs=gr.Audio(type="filepath", label="Audio file to stream"),
outputs=gr.Audio(autoplay=True, streaming=True),
)
demo.queue().launch()
```
2023-09-08 04:26:14 +08:00
From the backend, streamed outputs are served from the `/stream/` endpoint instead of the `/file/` endpoint. Currently just used to serve audio streaming output. The output JSON will have `is_stream` : `true` , instead of `is_file` : `true` in the file data object. Thanks [@aliabid94 ](https://github.com/aliabid94 )!
2023-08-11 04:59:00 +08:00
2023-07-27 05:10:24 +08:00
## 0.0.2
### Patch Changes
- Updated dependencies []:
2023-11-14 11:19:34 +08:00
- @gradio/atoms@0 .0.2