@gradio/image 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @gradio/image
2
2
 
3
+ ## 0.5.4
4
+
5
+ ### Fixes
6
+
7
+ - [#6865](https://github.com/gradio-app/gradio/pull/6865) [`15c97c6`](https://github.com/gradio-app/gradio/commit/15c97c6d346c475141d20615b5a865e9c44bdc76) - Fix webcam when `streaming=True`. Thanks [@hannahblair](https://github.com/hannahblair)!
8
+
3
9
  ## 0.5.3
4
10
 
5
11
  ### Fixes
@@ -84,3 +84,18 @@
84
84
  interactive: true
85
85
  }}
86
86
  />
87
+
88
+ <Story
89
+ name="interactive webcam with streaming"
90
+ args={{
91
+ sources: ["webcam"],
92
+ show_download_button: true,
93
+ interactive: true,
94
+ value: {
95
+ path: "https://gradio-builds.s3.amazonaws.com/demo-files/ghepardo-primo-piano.jpg",
96
+ url: "https://gradio-builds.s3.amazonaws.com/demo-files/ghepardo-primo-piano.jpg",
97
+ orig_name: "cheetah.jpg"
98
+ },
99
+ streaming: true
100
+ }}
101
+ />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/image",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -11,11 +11,11 @@
11
11
  "lazy-brush": "^1.0.1",
12
12
  "resize-observer-polyfill": "^1.5.1",
13
13
  "@gradio/atoms": "^0.4.1",
14
- "@gradio/client": "^0.9.3",
14
+ "@gradio/client": "^0.9.4",
15
15
  "@gradio/icons": "^0.3.2",
16
16
  "@gradio/statustracker": "^0.4.3",
17
- "@gradio/upload": "^0.5.6",
18
17
  "@gradio/utils": "^0.2.0",
18
+ "@gradio/upload": "^0.5.7",
19
19
  "@gradio/wasm": "^0.4.0"
20
20
  },
21
21
  "main_changeset": true,
@@ -122,7 +122,7 @@
122
122
  <slot />
123
123
  {/if}
124
124
  </Upload>
125
- {#if active_source === "webcam" && !value}
125
+ {#if active_source === "webcam" && (streaming || (!streaming && !value))}
126
126
  <Webcam
127
127
  on:capture={(e) => handle_save(e.detail)}
128
128
  on:stream={(e) => handle_save(e.detail)}