mtg
/
music-arousal-valence
Regression of musical arousal and valence values
Prediction
mtg/music-arousal-valence:9ae3915eIDctmocj3s4nd3rgwrhefes22qdyStatusSucceededSourceWebHardware–Total durationCreatedInput
- audio
- Video Player is loading.Current Time 00:00:000/Duration 00:00:000Loaded: 0%Stream Type LIVERemaining Time -00:00:0001x
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
No compatible source was found for this media.Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
- dataset
- emomusic
- embedding_type
- audioset-vggish
{ "audio": "https://replicate.delivery/mgxm/68eec153-fa3f-4a2f-803c-366d26de6b6b/01_-_Hotline_Bling.flac", "dataset": "emomusic", "embedding_type": "audioset-vggish" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", { input: { audio: "https://replicate.delivery/mgxm/68eec153-fa3f-4a2f-803c-366d26de6b6b/01_-_Hotline_Bling.flac", dataset: "emomusic", embedding_type: "audioset-vggish" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", input={ "audio": "https://replicate.delivery/mgxm/68eec153-fa3f-4a2f-803c-366d26de6b6b/01_-_Hotline_Bling.flac", "dataset": "emomusic", "embedding_type": "audioset-vggish" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mtg/music-arousal-valence 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": "9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", "input": { "audio": "https://replicate.delivery/mgxm/68eec153-fa3f-4a2f-803c-366d26de6b6b/01_-_Hotline_Bling.flac", "dataset": "emomusic", "embedding_type": "audioset-vggish" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175 \ -i 'audio="https://replicate.delivery/mgxm/68eec153-fa3f-4a2f-803c-366d26de6b6b/01_-_Hotline_Bling.flac"' \ -i 'dataset="emomusic"' \ -i 'embedding_type="audioset-vggish"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "audio": "https://replicate.delivery/mgxm/68eec153-fa3f-4a2f-803c-366d26de6b6b/01_-_Hotline_Bling.flac", "dataset": "emomusic", "embedding_type": "audioset-vggish" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-06-13T10:51:32.994707Z", "created_at": "2022-06-13T10:51:20.789136Z", "data_removed": false, "error": null, "id": "ctmocj3s4nd3rgwrhefes22qdy", "input": { "audio": "https://replicate.delivery/mgxm/68eec153-fa3f-4a2f-803c-366d26de6b6b/01_-_Hotline_Bling.flac", "dataset": "emomusic", "embedding_type": "audioset-vggish" }, "logs": null, "metrics": { "predict_time": 12.073582, "total_time": 12.205571 }, "output": "https://replicate.delivery/mgxm/2cb2bdd8-9065-46cd-990e-b97f19dc5048/out.png", "started_at": "2022-06-13T10:51:20.921125Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ctmocj3s4nd3rgwrhefes22qdy", "cancel": "https://api.replicate.com/v1/predictions/ctmocj3s4nd3rgwrhefes22qdy/cancel" }, "version": "1064850eeb2853ac69d7ff50c05404e7113ade77e176a6760086354e49c13dee" }
Generated inPrediction
mtg/music-arousal-valence:9ae3915eIDugzdnukrgvdajhdtk545tiem34StatusSucceededSourceWebHardware–Total durationCreatedInput
- audio
- Video Player is loading.Current Time 00:00:000/Duration 00:00:000Loaded: 0%00:00:000Stream Type LIVERemaining Time -00:00:0001x
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
- dataset
- emomusic
- embedding_type
- msd-musicnn
{ "audio": "https://replicate.delivery/mgxm/907f9b45-185c-41b1-96af-f2742bada25b/rock.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", { input: { audio: "https://replicate.delivery/mgxm/907f9b45-185c-41b1-96af-f2742bada25b/rock.mp3", dataset: "emomusic", embedding_type: "msd-musicnn" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", input={ "audio": "https://replicate.delivery/mgxm/907f9b45-185c-41b1-96af-f2742bada25b/rock.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mtg/music-arousal-valence 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": "9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", "input": { "audio": "https://replicate.delivery/mgxm/907f9b45-185c-41b1-96af-f2742bada25b/rock.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175 \ -i 'audio="https://replicate.delivery/mgxm/907f9b45-185c-41b1-96af-f2742bada25b/rock.mp3"' \ -i 'dataset="emomusic"' \ -i 'embedding_type="msd-musicnn"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "audio": "https://replicate.delivery/mgxm/907f9b45-185c-41b1-96af-f2742bada25b/rock.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-06-13T10:23:18.621655Z", "created_at": "2022-06-13T10:23:03.231861Z", "data_removed": false, "error": null, "id": "ugzdnukrgvdajhdtk545tiem34", "input": { "audio": "https://replicate.delivery/mgxm/907f9b45-185c-41b1-96af-f2742bada25b/rock.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }, "logs": null, "metrics": { "predict_time": 7.911718, "total_time": 15.389794 }, "output": "https://replicate.delivery/mgxm/9e232b54-eed5-48d1-a0bb-5d800bb59f75/out.png", "started_at": "2022-06-13T10:23:10.709937Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ugzdnukrgvdajhdtk545tiem34", "cancel": "https://api.replicate.com/v1/predictions/ugzdnukrgvdajhdtk545tiem34/cancel" }, "version": "1064850eeb2853ac69d7ff50c05404e7113ade77e176a6760086354e49c13dee" }
Generated inPrediction
mtg/music-arousal-valence:9ae3915eIDmhccalm5ezfo7e3pn64gprrnbqStatusSucceededSourceWebHardware–Total durationCreatedInput
- audio
- Video Player is loading.Current Time 00:00:000/Duration 00:00:000Loaded: 0%00:00:000Stream Type LIVERemaining Time -00:00:0001x
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
- dataset
- emomusic
- embedding_type
- msd-musicnn
{ "audio": "https://replicate.delivery/mgxm/6422229e-7582-40a0-bf64-49341e93cf32/Daft_Punk_-_Get_Lucky_Official_Audio_ft._Pharrell_Williams_.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", { input: { audio: "https://replicate.delivery/mgxm/6422229e-7582-40a0-bf64-49341e93cf32/Daft_Punk_-_Get_Lucky_Official_Audio_ft._Pharrell_Williams_.mp3", dataset: "emomusic", embedding_type: "msd-musicnn" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", input={ "audio": "https://replicate.delivery/mgxm/6422229e-7582-40a0-bf64-49341e93cf32/Daft_Punk_-_Get_Lucky_Official_Audio_ft._Pharrell_Williams_.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mtg/music-arousal-valence 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": "9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", "input": { "audio": "https://replicate.delivery/mgxm/6422229e-7582-40a0-bf64-49341e93cf32/Daft_Punk_-_Get_Lucky_Official_Audio_ft._Pharrell_Williams_.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175 \ -i 'audio="https://replicate.delivery/mgxm/6422229e-7582-40a0-bf64-49341e93cf32/Daft_Punk_-_Get_Lucky_Official_Audio_ft._Pharrell_Williams_.mp3"' \ -i 'dataset="emomusic"' \ -i 'embedding_type="msd-musicnn"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "audio": "https://replicate.delivery/mgxm/6422229e-7582-40a0-bf64-49341e93cf32/Daft_Punk_-_Get_Lucky_Official_Audio_ft._Pharrell_Williams_.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-06-13T13:03:18.403269Z", "created_at": "2022-06-13T13:03:00.015006Z", "data_removed": false, "error": null, "id": "mhccalm5ezfo7e3pn64gprrnbq", "input": { "audio": "https://replicate.delivery/mgxm/6422229e-7582-40a0-bf64-49341e93cf32/Daft_Punk_-_Get_Lucky_Official_Audio_ft._Pharrell_Williams_.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }, "logs": null, "metrics": { "predict_time": 17.81809, "total_time": 18.388263 }, "output": "https://replicate.delivery/mgxm/bca022c6-564b-4955-ac2d-8d67fecc1ffb/out.png", "started_at": "2022-06-13T13:03:00.585179Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/mhccalm5ezfo7e3pn64gprrnbq", "cancel": "https://api.replicate.com/v1/predictions/mhccalm5ezfo7e3pn64gprrnbq/cancel" }, "version": "1064850eeb2853ac69d7ff50c05404e7113ade77e176a6760086354e49c13dee" }
Generated inPrediction
mtg/music-arousal-valence:9ae3915eIDv7wcps5sjbcbffazteu63oh7qaStatusSucceededSourceWebHardware–Total durationCreatedInput
- audio
- Video Player is loading.Current Time 00:00:000/Duration 00:00:000Loaded: 0%00:00:000Stream Type LIVERemaining Time -00:00:0001x
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
- dataset
- emomusic
- embedding_type
- audioset-vggish
{ "audio": "https://replicate.delivery/mgxm/0311c1ba-3a0b-492a-af5b-45f27397531b/brent2.wav", "dataset": "emomusic", "embedding_type": "audioset-vggish" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", { input: { audio: "https://replicate.delivery/mgxm/0311c1ba-3a0b-492a-af5b-45f27397531b/brent2.wav", dataset: "emomusic", embedding_type: "audioset-vggish" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", input={ "audio": "https://replicate.delivery/mgxm/0311c1ba-3a0b-492a-af5b-45f27397531b/brent2.wav", "dataset": "emomusic", "embedding_type": "audioset-vggish" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mtg/music-arousal-valence 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": "9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", "input": { "audio": "https://replicate.delivery/mgxm/0311c1ba-3a0b-492a-af5b-45f27397531b/brent2.wav", "dataset": "emomusic", "embedding_type": "audioset-vggish" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175 \ -i 'audio="https://replicate.delivery/mgxm/0311c1ba-3a0b-492a-af5b-45f27397531b/brent2.wav"' \ -i 'dataset="emomusic"' \ -i 'embedding_type="audioset-vggish"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "audio": "https://replicate.delivery/mgxm/0311c1ba-3a0b-492a-af5b-45f27397531b/brent2.wav", "dataset": "emomusic", "embedding_type": "audioset-vggish" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-06-13T10:49:26.935851Z", "created_at": "2022-06-13T10:49:16.488700Z", "data_removed": false, "error": null, "id": "v7wcps5sjbcbffazteu63oh7qa", "input": { "audio": "https://replicate.delivery/mgxm/0311c1ba-3a0b-492a-af5b-45f27397531b/brent2.wav", "dataset": "emomusic", "embedding_type": "audioset-vggish" }, "logs": null, "metrics": { "predict_time": 3.041382, "total_time": 10.447151 }, "output": "https://replicate.delivery/mgxm/a4902c53-0c6e-4a72-b680-25f2a2d9a61b/out.png", "started_at": "2022-06-13T10:49:23.894469Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/v7wcps5sjbcbffazteu63oh7qa", "cancel": "https://api.replicate.com/v1/predictions/v7wcps5sjbcbffazteu63oh7qa/cancel" }, "version": "1064850eeb2853ac69d7ff50c05404e7113ade77e176a6760086354e49c13dee" }
Generated inPrediction
mtg/music-arousal-valence:9ae3915eID26txabffk5cetdkha6z4qswmvuStatusSucceededSourceWebHardware–Total durationCreatedInput
- audio
- Video Player is loading.Current Time 00:00:000/Duration 00:00:000Loaded: 0%00:00:000Stream Type LIVERemaining Time -00:00:0001x
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
- dataset
- emomusic
- embedding_type
- msd-musicnn
{ "audio": "https://replicate.delivery/mgxm/f2794584-64e9-45d1-a5bc-efdb5bdea106/Death_-_Symbolic-zbp60IX_jFQ.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", { input: { audio: "https://replicate.delivery/mgxm/f2794584-64e9-45d1-a5bc-efdb5bdea106/Death_-_Symbolic-zbp60IX_jFQ.mp3", dataset: "emomusic", embedding_type: "msd-musicnn" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", input={ "audio": "https://replicate.delivery/mgxm/f2794584-64e9-45d1-a5bc-efdb5bdea106/Death_-_Symbolic-zbp60IX_jFQ.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mtg/music-arousal-valence 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": "9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", "input": { "audio": "https://replicate.delivery/mgxm/f2794584-64e9-45d1-a5bc-efdb5bdea106/Death_-_Symbolic-zbp60IX_jFQ.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175 \ -i 'audio="https://replicate.delivery/mgxm/f2794584-64e9-45d1-a5bc-efdb5bdea106/Death_-_Symbolic-zbp60IX_jFQ.mp3"' \ -i 'dataset="emomusic"' \ -i 'embedding_type="msd-musicnn"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "audio": "https://replicate.delivery/mgxm/f2794584-64e9-45d1-a5bc-efdb5bdea106/Death_-_Symbolic-zbp60IX_jFQ.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-06-13T13:03:58.155650Z", "created_at": "2022-06-13T13:03:31.978971Z", "data_removed": false, "error": null, "id": "26txabffk5cetdkha6z4qswmvu", "input": { "audio": "https://replicate.delivery/mgxm/f2794584-64e9-45d1-a5bc-efdb5bdea106/Death_-_Symbolic-zbp60IX_jFQ.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }, "logs": null, "metrics": { "predict_time": 25.652914, "total_time": 26.176679 }, "output": "https://replicate.delivery/mgxm/1906a95b-39ce-4313-863d-223f745edafc/out.png", "started_at": "2022-06-13T13:03:32.502736Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/26txabffk5cetdkha6z4qswmvu", "cancel": "https://api.replicate.com/v1/predictions/26txabffk5cetdkha6z4qswmvu/cancel" }, "version": "1064850eeb2853ac69d7ff50c05404e7113ade77e176a6760086354e49c13dee" }
Generated inPrediction
mtg/music-arousal-valence:9ae3915eIDezzcv3gjbjcv5bsz2del5vdi5yStatusSucceededSourceWebHardware–Total durationCreatedInput
- audio
- Video Player is loading.Current Time 00:00:000/Duration 00:00:000Loaded: 0%00:00:000Stream Type LIVERemaining Time -00:00:0001x
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
- dataset
- emomusic
- embedding_type
- msd-musicnn
{ "audio": "https://replicate.delivery/mgxm/7be94081-d524-4753-854d-4fb7833eb080/Satie_-_Gnossiennes_-_Gnossiennes_No._1_-_Lent-t27rzTkFKmU.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", { input: { audio: "https://replicate.delivery/mgxm/7be94081-d524-4753-854d-4fb7833eb080/Satie_-_Gnossiennes_-_Gnossiennes_No._1_-_Lent-t27rzTkFKmU.mp3", dataset: "emomusic", embedding_type: "msd-musicnn" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", input={ "audio": "https://replicate.delivery/mgxm/7be94081-d524-4753-854d-4fb7833eb080/Satie_-_Gnossiennes_-_Gnossiennes_No._1_-_Lent-t27rzTkFKmU.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mtg/music-arousal-valence 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": "9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", "input": { "audio": "https://replicate.delivery/mgxm/7be94081-d524-4753-854d-4fb7833eb080/Satie_-_Gnossiennes_-_Gnossiennes_No._1_-_Lent-t27rzTkFKmU.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175 \ -i 'audio="https://replicate.delivery/mgxm/7be94081-d524-4753-854d-4fb7833eb080/Satie_-_Gnossiennes_-_Gnossiennes_No._1_-_Lent-t27rzTkFKmU.mp3"' \ -i 'dataset="emomusic"' \ -i 'embedding_type="msd-musicnn"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "audio": "https://replicate.delivery/mgxm/7be94081-d524-4753-854d-4fb7833eb080/Satie_-_Gnossiennes_-_Gnossiennes_No._1_-_Lent-t27rzTkFKmU.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-06-13T13:04:38.712341Z", "created_at": "2022-06-13T13:04:24.018647Z", "data_removed": false, "error": null, "id": "ezzcv3gjbjcv5bsz2del5vdi5y", "input": { "audio": "https://replicate.delivery/mgxm/7be94081-d524-4753-854d-4fb7833eb080/Satie_-_Gnossiennes_-_Gnossiennes_No._1_-_Lent-t27rzTkFKmU.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }, "logs": null, "metrics": { "predict_time": 14.548345, "total_time": 14.693694 }, "output": "https://replicate.delivery/mgxm/7ee11417-2e2e-46bb-9c6a-f445641f5164/out.png", "started_at": "2022-06-13T13:04:24.163996Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ezzcv3gjbjcv5bsz2del5vdi5y", "cancel": "https://api.replicate.com/v1/predictions/ezzcv3gjbjcv5bsz2del5vdi5y/cancel" }, "version": "1064850eeb2853ac69d7ff50c05404e7113ade77e176a6760086354e49c13dee" }
Generated inPrediction
mtg/music-arousal-valence:9ae3915eIDxknunt4nfvaqfkj7yrp5kkas4iStatusSucceededSourceWebHardware–Total durationCreatedInput
- audio
- Video Player is loading.Current Time 00:00:000/Duration 00:00:000Loaded: 0%00:00:000Stream Type LIVERemaining Time -00:00:0001x
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
- dataset
- emomusic
- embedding_type
- msd-musicnn
{ "audio": "https://replicate.delivery/mgxm/3d5c1557-d132-41a9-8517-6971b48e878b/Titanic_-_My_Heart_Will_Go_On_Music_Video-3gK_2XdjOdY.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", { input: { audio: "https://replicate.delivery/mgxm/3d5c1557-d132-41a9-8517-6971b48e878b/Titanic_-_My_Heart_Will_Go_On_Music_Video-3gK_2XdjOdY.mp3", dataset: "emomusic", embedding_type: "msd-musicnn" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run mtg/music-arousal-valence using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mtg/music-arousal-valence:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", input={ "audio": "https://replicate.delivery/mgxm/3d5c1557-d132-41a9-8517-6971b48e878b/Titanic_-_My_Heart_Will_Go_On_Music_Video-3gK_2XdjOdY.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mtg/music-arousal-valence 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": "9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175", "input": { "audio": "https://replicate.delivery/mgxm/3d5c1557-d132-41a9-8517-6971b48e878b/Titanic_-_My_Heart_Will_Go_On_Music_Video-3gK_2XdjOdY.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175 \ -i 'audio="https://replicate.delivery/mgxm/3d5c1557-d132-41a9-8517-6971b48e878b/Titanic_-_My_Heart_Will_Go_On_Music_Video-3gK_2XdjOdY.mp3"' \ -i 'dataset="emomusic"' \ -i 'embedding_type="msd-musicnn"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 r8.im/mtg/music-arousal-valence@sha256:9ae3915e0727ccad372d2608fe076cad87437306da79876df695c82a63149175
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "audio": "https://replicate.delivery/mgxm/3d5c1557-d132-41a9-8517-6971b48e878b/Titanic_-_My_Heart_Will_Go_On_Music_Video-3gK_2XdjOdY.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2022-06-13T13:05:19.090411Z", "created_at": "2022-06-13T13:04:59.587943Z", "data_removed": false, "error": null, "id": "xknunt4nfvaqfkj7yrp5kkas4i", "input": { "audio": "https://replicate.delivery/mgxm/3d5c1557-d132-41a9-8517-6971b48e878b/Titanic_-_My_Heart_Will_Go_On_Music_Video-3gK_2XdjOdY.mp3", "dataset": "emomusic", "embedding_type": "msd-musicnn" }, "logs": null, "metrics": { "predict_time": 19.353582, "total_time": 19.502468 }, "output": "https://replicate.delivery/mgxm/1ee5291b-721f-4570-86bc-80e8644c2485/out.png", "started_at": "2022-06-13T13:04:59.736829Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/xknunt4nfvaqfkj7yrp5kkas4i", "cancel": "https://api.replicate.com/v1/predictions/xknunt4nfvaqfkj7yrp5kkas4i/cancel" }, "version": "1064850eeb2853ac69d7ff50c05404e7113ade77e176a6760086354e49c13dee" }
Generated in
Want to make some of these yourself?
Run this model