myaiteam2 / song-cutter-upper
- Public
- 14 runs
Prediction
myaiteam2/song-cutter-upper:39b2b0ec46231b46b81d8c36bcefbf1976f1ebb5e5732590e43472d0f85c510bIDfkjrcxzbwf2rbtylwjrjb4h6diStatusSucceededSourceWebHardwareCPUTotal 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.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
- max_length
- 31
{ "audio": "https://replicate.delivery/pbxt/Kcy1L5NNGFZvw4VegeniIPIlvL58A7sCwDKjvCMLA3cajQcJ/Cali%20Baby.mp3", "max_length": 31 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run myaiteam2/song-cutter-upper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "myaiteam2/song-cutter-upper:39b2b0ec46231b46b81d8c36bcefbf1976f1ebb5e5732590e43472d0f85c510b", { input: { audio: "https://replicate.delivery/pbxt/Kcy1L5NNGFZvw4VegeniIPIlvL58A7sCwDKjvCMLA3cajQcJ/Cali%20Baby.mp3", max_length: 31 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run myaiteam2/song-cutter-upper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "myaiteam2/song-cutter-upper:39b2b0ec46231b46b81d8c36bcefbf1976f1ebb5e5732590e43472d0f85c510b", input={ "audio": "https://replicate.delivery/pbxt/Kcy1L5NNGFZvw4VegeniIPIlvL58A7sCwDKjvCMLA3cajQcJ/Cali%20Baby.mp3", "max_length": 31 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run myaiteam2/song-cutter-upper 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": "myaiteam2/song-cutter-upper:39b2b0ec46231b46b81d8c36bcefbf1976f1ebb5e5732590e43472d0f85c510b", "input": { "audio": "https://replicate.delivery/pbxt/Kcy1L5NNGFZvw4VegeniIPIlvL58A7sCwDKjvCMLA3cajQcJ/Cali%20Baby.mp3", "max_length": 31 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
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.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
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.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
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.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
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.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
{ "completed_at": "2024-03-24T20:59:16.530870Z", "created_at": "2024-03-24T20:58:46.058252Z", "data_removed": false, "error": null, "id": "fkjrcxzbwf2rbtylwjrjb4h6di", "input": { "audio": "https://replicate.delivery/pbxt/Kcy1L5NNGFZvw4VegeniIPIlvL58A7sCwDKjvCMLA3cajQcJ/Cali%20Baby.mp3", "max_length": 31 }, "logs": "MoviePy - Writing audio in /tmp/audio_parts/part_1.mp3\nchunk: 0%| | 0/684 [00:00<?, ?it/s, now=None]\nchunk: 9%|▉ | 60/684 [00:00<00:01, 587.19it/s, now=None]\nchunk: 18%|█▊ | 123/684 [00:00<00:00, 602.29it/s, now=None]\nchunk: 29%|██▉ | 201/684 [00:00<00:00, 681.61it/s, now=None]\nchunk: 39%|███▉ | 270/684 [00:00<00:00, 680.11it/s, now=None]\nchunk: 52%|█████▏ | 353/684 [00:00<00:00, 733.37it/s, now=None]\nchunk: 64%|██████▎ | 436/684 [00:00<00:00, 763.63it/s, now=None]\nchunk: 75%|███████▌ | 513/684 [00:00<00:00, 755.53it/s, now=None]\nchunk: 88%|████████▊ | 602/684 [00:00<00:00, 796.76it/s, now=None]\nMoviePy - Done.\nMoviePy - Writing audio in /tmp/audio_parts/part_2.mp3\nchunk: 0%| | 0/684 [00:00<?, ?it/s, now=None]\nchunk: 8%|▊ | 56/684 [00:00<00:01, 528.55it/s, now=None]\nchunk: 19%|█▉ | 132/684 [00:00<00:00, 618.37it/s, now=None]\nchunk: 32%|███▏ | 221/684 [00:00<00:00, 683.56it/s, now=None]\nchunk: 46%|████▋ | 317/684 [00:00<00:00, 772.38it/s, now=None]\nchunk: 58%|█████▊ | 395/684 [00:00<00:00, 759.80it/s, now=None]\nchunk: 69%|██████▉ | 472/684 [00:00<00:00, 733.41it/s, now=None]\nchunk: 80%|███████▉ | 546/684 [00:00<00:00, 725.10it/s, now=None]\nchunk: 90%|█████████ | 619/684 [00:00<00:00, 716.30it/s, now=None]\nMoviePy - Done.\nMoviePy - Writing audio in /tmp/audio_parts/part_3.mp3\nchunk: 0%| | 0/684 [00:00<?, ?it/s, now=None]\nchunk: 7%|▋ | 48/684 [00:00<00:01, 477.98it/s, now=None]\nchunk: 16%|█▌ | 111/684 [00:00<00:01, 558.11it/s, now=None]\nchunk: 29%|██▉ | 199/684 [00:00<00:00, 698.97it/s, now=None]\nchunk: 42%|████▏ | 287/684 [00:00<00:00, 763.92it/s, now=None]\nchunk: 53%|█████▎ | 364/684 [00:00<00:00, 754.12it/s, now=None]\nchunk: 66%|██████▌ | 453/684 [00:00<00:00, 799.28it/s, now=None]\nchunk: 80%|███████▉ | 544/684 [00:00<00:00, 833.09it/s, now=None]\nchunk: 92%|█████████▏| 628/684 [00:00<00:00, 833.30it/s, now=None]\nMoviePy - Done.\nMoviePy - Writing audio in /tmp/audio_parts/part_4.mp3\nchunk: 0%| | 0/662 [00:00<?, ?it/s, now=None]\nchunk: 12%|█▏ | 82/662 [00:00<00:00, 802.78it/s, now=None]\nchunk: 26%|██▌ | 169/662 [00:00<00:00, 841.72it/s, now=None]\nchunk: 38%|███▊ | 254/662 [00:00<00:00, 840.47it/s, now=None]\nchunk: 51%|█████ | 339/662 [00:00<00:00, 830.08it/s, now=None]\nchunk: 64%|██████▍ | 423/662 [00:00<00:00, 776.39it/s, now=None]\nchunk: 76%|███████▌ | 502/662 [00:00<00:00, 687.81it/s, now=None]\nchunk: 89%|████████▊ | 587/662 [00:00<00:00, 732.69it/s, now=None]\nMoviePy - Done.", "metrics": { "predict_time": 4.710892, "total_time": 30.472618 }, "output": [ "https://replicate.delivery/pbxt/ZhfwRBZ4peinJ0uzzeTYY0lroU0AhSCIKB5iqXzPLw6HxIHlA/part_1.mp3", "https://replicate.delivery/pbxt/XnyVVoe1lBVdZaqJ15pFfgxm5hxHvtkgcSlCr77w7hskYkjSA/part_2.mp3", "https://replicate.delivery/pbxt/JjgWWax2OmI4KxeANw2zAU6au1jzvQM0JT8wAA2AQdASMyRJA/part_3.mp3", "https://replicate.delivery/pbxt/frWGBmNn5p0NASnFFmg55yQhfHnq9g6pKrk3edf4BjOSiROKB/part_4.mp3" ], "started_at": "2024-03-24T20:59:11.819978Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/fkjrcxzbwf2rbtylwjrjb4h6di", "cancel": "https://api.replicate.com/v1/predictions/fkjrcxzbwf2rbtylwjrjb4h6di/cancel" }, "version": "39b2b0ec46231b46b81d8c36bcefbf1976f1ebb5e5732590e43472d0f85c510b" }
Generated inMoviePy - Writing audio in /tmp/audio_parts/part_1.mp3 chunk: 0%| | 0/684 [00:00<?, ?it/s, now=None] chunk: 9%|▉ | 60/684 [00:00<00:01, 587.19it/s, now=None] chunk: 18%|█▊ | 123/684 [00:00<00:00, 602.29it/s, now=None] chunk: 29%|██▉ | 201/684 [00:00<00:00, 681.61it/s, now=None] chunk: 39%|███▉ | 270/684 [00:00<00:00, 680.11it/s, now=None] chunk: 52%|█████▏ | 353/684 [00:00<00:00, 733.37it/s, now=None] chunk: 64%|██████▎ | 436/684 [00:00<00:00, 763.63it/s, now=None] chunk: 75%|███████▌ | 513/684 [00:00<00:00, 755.53it/s, now=None] chunk: 88%|████████▊ | 602/684 [00:00<00:00, 796.76it/s, now=None] MoviePy - Done. MoviePy - Writing audio in /tmp/audio_parts/part_2.mp3 chunk: 0%| | 0/684 [00:00<?, ?it/s, now=None] chunk: 8%|▊ | 56/684 [00:00<00:01, 528.55it/s, now=None] chunk: 19%|█▉ | 132/684 [00:00<00:00, 618.37it/s, now=None] chunk: 32%|███▏ | 221/684 [00:00<00:00, 683.56it/s, now=None] chunk: 46%|████▋ | 317/684 [00:00<00:00, 772.38it/s, now=None] chunk: 58%|█████▊ | 395/684 [00:00<00:00, 759.80it/s, now=None] chunk: 69%|██████▉ | 472/684 [00:00<00:00, 733.41it/s, now=None] chunk: 80%|███████▉ | 546/684 [00:00<00:00, 725.10it/s, now=None] chunk: 90%|█████████ | 619/684 [00:00<00:00, 716.30it/s, now=None] MoviePy - Done. MoviePy - Writing audio in /tmp/audio_parts/part_3.mp3 chunk: 0%| | 0/684 [00:00<?, ?it/s, now=None] chunk: 7%|▋ | 48/684 [00:00<00:01, 477.98it/s, now=None] chunk: 16%|█▌ | 111/684 [00:00<00:01, 558.11it/s, now=None] chunk: 29%|██▉ | 199/684 [00:00<00:00, 698.97it/s, now=None] chunk: 42%|████▏ | 287/684 [00:00<00:00, 763.92it/s, now=None] chunk: 53%|█████▎ | 364/684 [00:00<00:00, 754.12it/s, now=None] chunk: 66%|██████▌ | 453/684 [00:00<00:00, 799.28it/s, now=None] chunk: 80%|███████▉ | 544/684 [00:00<00:00, 833.09it/s, now=None] chunk: 92%|█████████▏| 628/684 [00:00<00:00, 833.30it/s, now=None] MoviePy - Done. MoviePy - Writing audio in /tmp/audio_parts/part_4.mp3 chunk: 0%| | 0/662 [00:00<?, ?it/s, now=None] chunk: 12%|█▏ | 82/662 [00:00<00:00, 802.78it/s, now=None] chunk: 26%|██▌ | 169/662 [00:00<00:00, 841.72it/s, now=None] chunk: 38%|███▊ | 254/662 [00:00<00:00, 840.47it/s, now=None] chunk: 51%|█████ | 339/662 [00:00<00:00, 830.08it/s, now=None] chunk: 64%|██████▍ | 423/662 [00:00<00:00, 776.39it/s, now=None] chunk: 76%|███████▌ | 502/662 [00:00<00:00, 687.81it/s, now=None] chunk: 89%|████████▊ | 587/662 [00:00<00:00, 732.69it/s, now=None] MoviePy - Done.
Want to make some of these yourself?
Run this model