You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,9 +48,23 @@ In the example above, 16 requests could be processed in parallel (for a total in
48
48
time of 5 seconds), instead of each request being processed separately (for a total
49
49
inference time of 80 seconds).
50
50
51
-
### Load Event
51
+
### Upload Event
52
52
53
-
`Video`, `Audio`, `Image`, and `File` components now support a `upload` event that is triggered when a user uploads a file into any of these components.
53
+
`Video`, `Audio`, `Image`, and `File` components now support a `upload()` event that is triggered when a user uploads a file into any of these components.
54
+
55
+
Example usage:
56
+
57
+
```py
58
+
import gradio as gr
59
+
60
+
with gr.Blocks() as demo:
61
+
with gr.Row():
62
+
input_video = gr.Video()
63
+
output_video = gr.Video()
64
+
65
+
# Clears the output video when an input video is uploaded
* Changes websocket path for Spaces as it is no longer necessary to have a different URL for websocket connections on Spaces by [@abidlabs](https://github.com/abidlabs) in [PR 2528](https://github.com/gradio-app/gradio/pull/2528)
80
94
* Clearer error message when events are defined outside of a Blocks scope, and a warning if you
81
95
try to use `Series` or `Parallel` with `Blocks` by [@abidlabs](https://github.com/abidlabs) in [PR 2543](https://github.com/gradio-app/gradio/pull/2543)
96
+
* Adds support for audio samples that are in `float64`, `float16`, or `uint16` formats by [@abidlabs](https://github.com/abidlabs) in [PR 2545](https://github.com/gradio-app/gradio/pull/2545)
0 commit comments