@gradio/client 1.19.0 → 2.0.0-dev.0

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,17 @@
1
1
  # @gradio/client
2
2
 
3
+ ## 2.0.0-dev.0
4
+
5
+ ### Features
6
+
7
+ - [#11908](https://github.com/gradio-app/gradio/pull/11908) [`53d9098`](https://github.com/gradio-app/gradio/commit/53d9098cca378f6ebff9dec15d2faa8a3d2fb510) - [No Merge] Gradio 6.0. Thanks @freddyaboulton!
8
+
9
+ ## 1.19.1
10
+
11
+ ### Fixes
12
+
13
+ - [#11955](https://github.com/gradio-app/gradio/pull/11955) [`64046cc`](https://github.com/gradio-app/gradio/commit/64046ccd76a41f06ef9eed0e3aa1ec66348f55bd) - Fix Multi-page demo in Dev Mode. Thanks @ftoh!
14
+
3
15
  ## 1.19.0
4
16
 
5
17
  ### Features
package/README.md CHANGED
@@ -46,9 +46,9 @@ Client.connect("user/space-name");
46
46
 
47
47
  #### `options`
48
48
 
49
- The options object can optionally be passed a second parameter. This object has two properties, `hf_token` and `status_callback`.
49
+ The options object can optionally be passed a second parameter. This object has two properties, `token` and `status_callback`.
50
50
 
51
- ##### `hf_token`
51
+ ##### `token`
52
52
 
53
53
  This should be a Hugging Face personal access token and is required if you wish to make calls to a private gradio api. This option is optional and should be a string starting with `"hf_"`.
54
54
 
@@ -57,7 +57,7 @@ Example:
57
57
  ```ts
58
58
  import { Client } from "@gradio/client";
59
59
 
60
- const app = await Client.connect("user/space-name", { hf_token: "hf_..." });
60
+ const app = await Client.connect("user/space-name", { token: "hf_..." });
61
61
  ```
62
62
 
63
63
  ##### `status_callback`
@@ -267,7 +267,7 @@ The duplicate function will attempt to duplicate the space that is referenced an
267
267
  import { Client } from "@gradio/client";
268
268
 
269
269
  const app = await Client.duplicate("user/space-name", {
270
- hf_token: "hf_..."
270
+ token: "hf_..."
271
271
  });
272
272
  ```
273
273
 
@@ -279,7 +279,7 @@ The space to duplicate and connect to. [See `client`'s `source` parameter](#sour
279
279
 
280
280
  #### `options`
281
281
 
282
- Accepts all options that `client` accepts, except `hf_token` is required. [See `client`'s `options` parameter](#source).
282
+ Accepts all options that `client` accepts, except `token` is required. [See `client`'s `options` parameter](#source).
283
283
 
284
284
  `duplicate` also accepts one additional `options` property.
285
285
 
@@ -291,7 +291,7 @@ This is an optional property specific to `duplicate`'s options object and will d
291
291
  import { Client } from "@gradio/client";
292
292
 
293
293
  const app = await Client.duplicate("user/space-name", {
294
- hf_token: "hf_...",
294
+ token: "hf_...",
295
295
  private: true
296
296
  });
297
297
  ```
@@ -304,7 +304,7 @@ This is an optional property specific to `duplicate`'s options object and will s
304
304
  import { Client } from "@gradio/client";
305
305
 
306
306
  const app = await Client.duplicate("user/space-name", {
307
- hf_token: "hf_...",
307
+ token: "hf_...",
308
308
  private: true,
309
309
  timeout: 5
310
310
  });
@@ -334,7 +334,7 @@ Possible hardware options are:
334
334
  import { Client } from "@gradio/client";
335
335
 
336
336
  const app = await Client.duplicate("user/space-name", {
337
- hf_token: "hf_...",
337
+ token: "hf_...",
338
338
  private: true,
339
339
  hardware: "a10g-small"
340
340
  });