You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Define the API token and endpointconstreplicateAPIToken='xxxxxxxxxxxxxxxxxxxxxxxxxx';// You should secure this token properly in productionconsturl='https://api.replicate.com/v1/predictions';// Define the data payload for the POST requestconstdata={version: "4a60104c44dd709fc08a03dfeca6c6906257633dd03fd58663ec896a4eeba30e",input: {audio: "https://replicate.delivery/pbxt/IfYtYMI5B23lFkUoI7zDtehuLw2NzKCoJpmJQvSVGD5l3gfY/vocals.mp3",model: "large-v1",initial_prompt: "Karstadtdetektiv",suppress_tokens: -1,word_timestamps: true,logprob_threshold: -1,append_punctuations: "\"'.。,,!!??::”)]}、",no_speech_threshold: 0.6,prepend_punctuations: "'“¿([{-",condition_on_previous_text: true,compression_ratio_threshold: 2,temperature_increment_on_fallback: 0.2}};// Use fetch API to send the POST requestfetch(url,{method: 'POST',headers: {'Authorization': `Bearer ${replicateAPIToken}`,'Content-Type': 'application/json'},body: JSON.stringify(data)}).then(response=>response.json()).then(data=>console.log('Success:',data)).catch((error)=>console.error('Error:',error));
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: