Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
pengdaqian2020 /music-label:49f93cef
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run pengdaqian2020/music-label using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"pengdaqian2020/music-label:49f93cef87608197b9b570db991794a19f064d3d301c7843e1c9537393ffe4e1",
{
input: {
audio_path: "https://replicate.delivery/pbxt/IqAA9PKBBSLIo3Umf7rvP4k9cBxIKFZHVOEsLsLCrGMNIvFr/origin.wav",
score_general_threshold: 0.35,
score_character_threshold: 0.85
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run pengdaqian2020/music-label using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pengdaqian2020/music-label:49f93cef87608197b9b570db991794a19f064d3d301c7843e1c9537393ffe4e1",
input={
"audio_path": "https://replicate.delivery/pbxt/IqAA9PKBBSLIo3Umf7rvP4k9cBxIKFZHVOEsLsLCrGMNIvFr/origin.wav",
"score_general_threshold": 0.35,
"score_character_threshold": 0.85
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run pengdaqian2020/music-label using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "pengdaqian2020/music-label:49f93cef87608197b9b570db991794a19f064d3d301c7843e1c9537393ffe4e1",
"input": {
"audio_path": "https://replicate.delivery/pbxt/IqAA9PKBBSLIo3Umf7rvP4k9cBxIKFZHVOEsLsLCrGMNIvFr/origin.wav",
"score_general_threshold": 0.35,
"score_character_threshold": 0.85
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{
"completed_at": "2023-05-17T17:04:15.629154Z",
"created_at": "2023-05-17T17:04:14.249337Z",
"data_removed": false,
"error": null,
"id": "nptqbwhpezb7xiw3fp2bfii3oa",
"input": {
"audio_path": "https://replicate.delivery/pbxt/IqAA9PKBBSLIo3Umf7rvP4k9cBxIKFZHVOEsLsLCrGMNIvFr/origin.wav",
"score_general_threshold": 0.35,
"score_character_threshold": 0.85
},
"logs": "['pop', 'drums']",
"metrics": {
"predict_time": 1.41136,
"total_time": 1.379817
},
"output": [
"pop",
"drums"
],
"started_at": "2023-05-17T17:04:14.217794Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/nptqbwhpezb7xiw3fp2bfii3oa",
"cancel": "https://api.replicate.com/v1/predictions/nptqbwhpezb7xiw3fp2bfii3oa/cancel"
},
"version": "49f93cef87608197b9b570db991794a19f064d3d301c7843e1c9537393ffe4e1"
}
['pop', 'drums']