Skip to content

Commit

Permalink
fix test + update tapes
Browse files Browse the repository at this point in the history
  • Loading branch information
SBrandeis committed Jan 8, 2025
1 parent 01ccbf6 commit 104f672
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/inference/test/HfInference.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -862,13 +862,12 @@ describe.concurrent(
const res = await client.automaticSpeechRecognition({
model: "openai/whisper-large-v3",
provider: "fal-ai",
data: new Blob([readTestFile("sample2.wav")], { type: "audio/vnd.wav" }),
data: new Blob([readTestFile("sample2.wav")], { type: "audio/x-wav" }),
});
expect(res).toMatchObject({
text: "HE HAS GRAVE DOUBTS WHETHER SIR FREDERICK LEIGHTON'S WORK IS REALLY GREEK AFTER ALL AND CAN DISCOVER IN IT BUT LITTLE OF ROCKY ITHACA",
text: "He has grave doubts whether Sir Frederick Leighton's work is really Greek after all, and can discover in it but little of rocky Ithaca.",
});
});
});
},
TIMEOUT
);
19 changes: 19 additions & 0 deletions packages/inference/test/tapes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2354,5 +2354,24 @@
"vary": "Accept-Encoding"
}
}
},
"a540c67dea61eb4a90fedc20699d4863b04fd61dca73756d1f31a09793307689": {
"url": "https://fal.run/fal-ai/wizper",
"init": {
"headers": {
"Content-Type": "application/json"
},
"method": "POST"
},
"response": {
"body": "{\"text\":\"He has grave doubts whether Sir Frederick Leighton's work is really Greek after all, and can discover in it but little of rocky Ithaca.\",\"chunks\":[{\"timestamp\":[0.36,9.62],\"text\":\"He has grave doubts whether Sir Frederick Leighton's work is really Greek after all, and can discover in it but little of rocky Ithaca.\"}]}",
"status": 200,
"statusText": "OK",
"headers": {
"connection": "keep-alive",
"content-type": "application/json",
"strict-transport-security": "max-age=31536000; includeSubDomains"
}
}
}
}

0 comments on commit 104f672

Please sign in to comment.