mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-31 12:20:26 +08:00
Fix typo in client/js/README.md (#4310)
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
parent
5983836804
commit
0888175b0e
@ -206,7 +206,7 @@ submission.off("/predict", handle_data);
|
||||
|
||||
##### `destroy`
|
||||
|
||||
The `destroy` method will remove all subscriptions to a job, regardless of whether or not they are `"data"` or `"status"` events. This is a convenience method for when you do not wnat to unsubscribe use the `off` method.
|
||||
The `destroy` method will remove all subscriptions to a job, regardless of whether or not they are `"data"` or `"status"` events. This is a convenience method for when you do not want to unsubscribe use the `off` method.
|
||||
|
||||
```js
|
||||
import { client } from "@gradio/client";
|
||||
@ -239,7 +239,7 @@ submission.cancel();
|
||||
|
||||
#### `view_api`
|
||||
|
||||
The `view_api` method provides details about the API you are connected too. It returns a JavaScript object of all named endpoints, unnamed endpoints and what values they accept and return. This method does not accept arguments.
|
||||
The `view_api` method provides details about the API you are connected to. It returns a JavaScript object of all named endpoints, unnamed endpoints and what values they accept and return. This method does not accept arguments.
|
||||
|
||||
```ts
|
||||
import { client } from "@gradio/client";
|
||||
|
Loading…
x
Reference in New Issue
Block a user