Skip to content

Commit c49e696

Browse files
committed
Update
1 parent 49b5901 commit c49e696

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/models/code/WhisperBase64Code.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
2525
const mp3 = await fetch(URL);
2626
if (!mp3.ok) {
27-
throw new Error('Response status from mp3');
27+
throw new Error('Response error from mp3');
2828
}
2929
const mp3Buffer = await mp3.arrayBuffer();
3030
const base64 = Buffer.from(mp3Buffer, 'binary').toString("base64");

src/pages/workers-ai/models/[name].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ if (model.name === "@cf/black-forest-labs/flux-1-schnell") {
8989
CodeExamples = Flux1Schnell;
9090
}
9191
92-
if (model.name === "@cf/black-forest-labs/flux-1-schnell") {
93-
CodeExamples = Flux1Schnell;
92+
if (model.name === "@cf/openai/whisper-large-v3-turbo") {
93+
CodeExamples = WhisperBase64Code;
9494
}
9595
9696
const description = model.description;

0 commit comments

Comments
 (0)