Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prediction failed: attempt to get argmin of an empty sequence #247

Open
wscourge opened this issue Sep 18, 2024 · 0 comments
Open

Prediction failed: attempt to get argmin of an empty sequence #247

wscourge opened this issue Sep 18, 2024 · 0 comments

Comments

@wscourge
Copy link

wscourge commented Sep 18, 2024

Running on replicate.com with Node.js, I get the following error:

An error occurred: Error: Prediction failed: attempt to get argmin of an empty sequence
at Replicate.wait (/Users/me/ws/tzif.io/audio/node_modules/replicate/index.js:420:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Replicate.run (/Users/me/ws/tzif.io/audio/node_modules/replicate/index.js:171:18)
at async processAndTranscribe (/Users/me/ws/tzif.io/audio/poc.js:52:7)
at async main (/Users/me/ws/tzif.io/audio/poc.js:115:20)

Relevant code:

const Replicate = require('replicate');
const replicate = new Replicate({
  auth: 'REPLICATE_TOKEN',
});

const audioFile = await readFile("my-file.wav");
await replicate.run(
      "vaibhavs10/incredibly-fast-whisper:3ab86df6c8f54c11309d4d1f930ac292bad43ace52d10c80d87eb258b3c9f79c",
      {
        input: {
          task: "transcribe",
          audio: audioFile,
          language: "polish",
          timestamp: "chunk",
          batch_size: 64,
          diarise_audio: true,
          hf_token: "MY_TOKEN",
        }
      }
    );

Audio file that I use: https://file.io/6sOXfdcVcfyd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant