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:
Garry Dolley 2024-02-18 15:11:49 -08:00 committed by GitHub
parent 1dbaa53109
commit 54ec29ad1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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