mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
Fixed typo in example: client -> app (#7473)
I was trying to run this example, but it failed. predict() is a method of the app object, not client. Fixed!
This commit is contained in:
parent
1dbaa53109
commit
54ec29ad1e
@ -178,7 +178,7 @@ const response = await fetch(
|
||||
const audio_file = await response.blob();
|
||||
|
||||
const app = await client("abidlabs/whisper");
|
||||
const result = await client.predict("/predict", [audio_file]);
|
||||
const result = await app.predict("/predict", [audio_file]);
|
||||
```
|
||||
|
||||
## Using events
|
||||
|
Loading…
x
Reference in New Issue
Block a user