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.
jd7h /edit-video-by-editing-text:e010b880
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 jd7h/edit-video-by-editing-text using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jd7h/edit-video-by-editing-text:e010b880347314d07e3ce3b21cbd4c57add51fea3474677a6cb1316751c4cb90",
{
input: {
mode: "edit",
split_at: "word",
video_in: "https://replicate.delivery/pbxt/JzSYzG5UA1C5WcFTcnjwsakHwxTMfmWQPY7JhWYTUEzIROFq/cooking.mp4",
transcription: "[remove all references to cheese] we have our pot readis ago we can have our noodles in there and of course we have our butter this dish has a lot of butter in it and so we have this whole stick of butter well cut it up put it right in there delicious and then pepper these are black pepper corns this is cacio e peppe peppemin's pepper so we have this pepper and morgan a need this grinder right here to do we get a ready for our dish but here are the pepper corns and we have all those ingredients but of course we need nodles so here is our lingueni linguini is one of my favorite noodles it's a long noodle a it's cano like spigetty it's a little bit flatter than spigetty it lile bet rounder than feticini one of my personal favorites since that's what we're goting use to night e gan i put it right here in this pot of water but first of course we need to bring that to a boil so we can give it just a few minutes to boil cover it up an once it's boiling just like that where can i go ahead and take off the lid so we can put our noodles right in there and get them cooking just pour your noodles all in their and spill a couple over the side just like that perfect oap and spill a few more yep that's grigt so on from the noodles now clean off the boardarl bit and get our butter going like i said we're ging to need this wholestick of butter but it'll work better if we cut it up a little bit first so let's descrab our knife and cut itinto one two three four five six seven and in atlast beat is eight pieces of butter and we'll just move that over here to the side and our pepper this is our peppergrinder see when i grind it it comes out nice and fine like this just as little powder that'll be perfect and you know it this thisditio needs one more thing it needs some a rugala arugla is this green letice like this its it's pretty good it's a rggo him throw that and there we'll keep that here so we've got our rugla our butter and our pepper all ready to go our posta is still cooking here let's give it a tle bit of e stir and see how we're doing iit's almost there which means that it is perfect for us right now cause we don't want it to be done just quite yet we have a little bit more work to do see the noodles ares learing to bend a little bit swirling around just make sure that everything's getting cooked evenly nothing is sticking together nobody wants sticky noodles in there possa dish so we have some other things we need to do the first thing that we need to do is melt our butter so here are three pieces of hat butter we'll throw it in our big pot here turn on the stove make sure that we have our wooden spoon at the ready so we can stir get that butter melting is can it take just a second but then once it's turring to melt we'eging to add a cup of this postal water and also worging a just add pepper pepper and pepper and pepper and pepper and then aure post of water anyo what were ging to go and stir that up a little bit and then our noodles are all done so let's let's get these noodles out put em all here in the pot out of that big pot of water and in with her butter and er pepper in our apos to water so we can go ahead and finish is up people are hungry the family is ready to eat and this is this is the part where like i said this is where i feel like i belong and so an i making sure i i get all this right and i want to make sure to have dinner with my family to night and this is just where i feel like i can be confident i can be in the confident in the kitchen because i know what i'm doing i'm happy there i feel like i can give something to my family and we enjoy a meal together and i i hope that you have a place too where you feel confident you feel happy you feel like you belonged this is deathling one those places for me bus as i finished up this meal my family starting to come down from upstairs from different places will just add that arugla in there for them and theyre trying to look over my shoulder and see this meal that i have prepared in it it means that we can all sit down together and have dinner and we can feel comfortable and confident with each other so just the few finishing touches and dinner is"
}
}
);
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 jd7h/edit-video-by-editing-text using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jd7h/edit-video-by-editing-text:e010b880347314d07e3ce3b21cbd4c57add51fea3474677a6cb1316751c4cb90",
input={
"mode": "edit",
"split_at": "word",
"video_in": "https://replicate.delivery/pbxt/JzSYzG5UA1C5WcFTcnjwsakHwxTMfmWQPY7JhWYTUEzIROFq/cooking.mp4",
"transcription": "[remove all references to cheese] we have our pot readis ago we can have our noodles in there and of course we have our butter this dish has a lot of butter in it and so we have this whole stick of butter well cut it up put it right in there delicious and then pepper these are black pepper corns this is cacio e peppe peppemin's pepper so we have this pepper and morgan a need this grinder right here to do we get a ready for our dish but here are the pepper corns and we have all those ingredients but of course we need nodles so here is our lingueni linguini is one of my favorite noodles it's a long noodle a it's cano like spigetty it's a little bit flatter than spigetty it lile bet rounder than feticini one of my personal favorites since that's what we're goting use to night e gan i put it right here in this pot of water but first of course we need to bring that to a boil so we can give it just a few minutes to boil cover it up an once it's boiling just like that where can i go ahead and take off the lid so we can put our noodles right in there and get them cooking just pour your noodles all in their and spill a couple over the side just like that perfect oap and spill a few more yep that's grigt so on from the noodles now clean off the boardarl bit and get our butter going like i said we're ging to need this wholestick of butter but it'll work better if we cut it up a little bit first so let's descrab our knife and cut itinto one two three four five six seven and in atlast beat is eight pieces of butter and we'll just move that over here to the side and our pepper this is our peppergrinder see when i grind it it comes out nice and fine like this just as little powder that'll be perfect and you know it this thisditio needs one more thing it needs some a rugala arugla is this green letice like this its it's pretty good it's a rggo him throw that and there we'll keep that here so we've got our rugla our butter and our pepper all ready to go our posta is still cooking here let's give it a tle bit of e stir and see how we're doing iit's almost there which means that it is perfect for us right now cause we don't want it to be done just quite yet we have a little bit more work to do see the noodles ares learing to bend a little bit swirling around just make sure that everything's getting cooked evenly nothing is sticking together nobody wants sticky noodles in there possa dish so we have some other things we need to do the first thing that we need to do is melt our butter so here are three pieces of hat butter we'll throw it in our big pot here turn on the stove make sure that we have our wooden spoon at the ready so we can stir get that butter melting is can it take just a second but then once it's turring to melt we'eging to add a cup of this postal water and also worging a just add pepper pepper and pepper and pepper and pepper and then aure post of water anyo what were ging to go and stir that up a little bit and then our noodles are all done so let's let's get these noodles out put em all here in the pot out of that big pot of water and in with her butter and er pepper in our apos to water so we can go ahead and finish is up people are hungry the family is ready to eat and this is this is the part where like i said this is where i feel like i belong and so an i making sure i i get all this right and i want to make sure to have dinner with my family to night and this is just where i feel like i can be confident i can be in the confident in the kitchen because i know what i'm doing i'm happy there i feel like i can give something to my family and we enjoy a meal together and i i hope that you have a place too where you feel confident you feel happy you feel like you belonged this is deathling one those places for me bus as i finished up this meal my family starting to come down from upstairs from different places will just add that arugla in there for them and theyre trying to look over my shoulder and see this meal that i have prepared in it it means that we can all sit down together and have dinner and we can feel comfortable and confident with each other so just the few finishing touches and dinner is"
}
)
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 jd7h/edit-video-by-editing-text 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": "jd7h/edit-video-by-editing-text:e010b880347314d07e3ce3b21cbd4c57add51fea3474677a6cb1316751c4cb90",
"input": {
"mode": "edit",
"split_at": "word",
"video_in": "https://replicate.delivery/pbxt/JzSYzG5UA1C5WcFTcnjwsakHwxTMfmWQPY7JhWYTUEzIROFq/cooking.mp4",
"transcription": "[remove all references to cheese] we have our pot readis ago we can have our noodles in there and of course we have our butter this dish has a lot of butter in it and so we have this whole stick of butter well cut it up put it right in there delicious and then pepper these are black pepper corns this is cacio e peppe peppemin\'s pepper so we have this pepper and morgan a need this grinder right here to do we get a ready for our dish but here are the pepper corns and we have all those ingredients but of course we need nodles so here is our lingueni linguini is one of my favorite noodles it\'s a long noodle a it\'s cano like spigetty it\'s a little bit flatter than spigetty it lile bet rounder than feticini one of my personal favorites since that\'s what we\'re goting use to night e gan i put it right here in this pot of water but first of course we need to bring that to a boil so we can give it just a few minutes to boil cover it up an once it\'s boiling just like that where can i go ahead and take off the lid so we can put our noodles right in there and get them cooking just pour your noodles all in their and spill a couple over the side just like that perfect oap and spill a few more yep that\'s grigt so on from the noodles now clean off the boardarl bit and get our butter going like i said we\'re ging to need this wholestick of butter but it\'ll work better if we cut it up a little bit first so let\'s descrab our knife and cut itinto one two three four five six seven and in atlast beat is eight pieces of butter and we\'ll just move that over here to the side and our pepper this is our peppergrinder see when i grind it it comes out nice and fine like this just as little powder that\'ll be perfect and you know it this thisditio needs one more thing it needs some a rugala arugla is this green letice like this its it\'s pretty good it\'s a rggo him throw that and there we\'ll keep that here so we\'ve got our rugla our butter and our pepper all ready to go our posta is still cooking here let\'s give it a tle bit of e stir and see how we\'re doing iit\'s almost there which means that it is perfect for us right now cause we don\'t want it to be done just quite yet we have a little bit more work to do see the noodles ares learing to bend a little bit swirling around just make sure that everything\'s getting cooked evenly nothing is sticking together nobody wants sticky noodles in there possa dish so we have some other things we need to do the first thing that we need to do is melt our butter so here are three pieces of hat butter we\'ll throw it in our big pot here turn on the stove make sure that we have our wooden spoon at the ready so we can stir get that butter melting is can it take just a second but then once it\'s turring to melt we\'eging to add a cup of this postal water and also worging a just add pepper pepper and pepper and pepper and pepper and then aure post of water anyo what were ging to go and stir that up a little bit and then our noodles are all done so let\'s let\'s get these noodles out put em all here in the pot out of that big pot of water and in with her butter and er pepper in our apos to water so we can go ahead and finish is up people are hungry the family is ready to eat and this is this is the part where like i said this is where i feel like i belong and so an i making sure i i get all this right and i want to make sure to have dinner with my family to night and this is just where i feel like i can be confident i can be in the confident in the kitchen because i know what i\'m doing i\'m happy there i feel like i can give something to my family and we enjoy a meal together and i i hope that you have a place too where you feel confident you feel happy you feel like you belonged this is deathling one those places for me bus as i finished up this meal my family starting to come down from upstairs from different places will just add that arugla in there for them and theyre trying to look over my shoulder and see this meal that i have prepared in it it means that we can all sit down together and have dinner and we can feel comfortable and confident with each other so just the few finishing touches and dinner is"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-12-04T13:48:19.346411Z",
"created_at": "2023-12-04T13:47:42.360965Z",
"data_removed": false,
"error": null,
"id": "fmaylktbqqdgxdlmdtwjhgbuxq",
"input": {
"mode": "edit",
"split_at": "word",
"video_in": "https://replicate.delivery/pbxt/JzSYzG5UA1C5WcFTcnjwsakHwxTMfmWQPY7JhWYTUEzIROFq/cooking.mp4",
"transcription": "[remove all references to cheese] we have our pot readis ago we can have our noodles in there and of course we have our butter this dish has a lot of butter in it and so we have this whole stick of butter well cut it up put it right in there delicious and then pepper these are black pepper corns this is cacio e peppe peppemin's pepper so we have this pepper and morgan a need this grinder right here to do we get a ready for our dish but here are the pepper corns and we have all those ingredients but of course we need nodles so here is our lingueni linguini is one of my favorite noodles it's a long noodle a it's cano like spigetty it's a little bit flatter than spigetty it lile bet rounder than feticini one of my personal favorites since that's what we're goting use to night e gan i put it right here in this pot of water but first of course we need to bring that to a boil so we can give it just a few minutes to boil cover it up an once it's boiling just like that where can i go ahead and take off the lid so we can put our noodles right in there and get them cooking just pour your noodles all in their and spill a couple over the side just like that perfect oap and spill a few more yep that's grigt so on from the noodles now clean off the boardarl bit and get our butter going like i said we're ging to need this wholestick of butter but it'll work better if we cut it up a little bit first so let's descrab our knife and cut itinto one two three four five six seven and in atlast beat is eight pieces of butter and we'll just move that over here to the side and our pepper this is our peppergrinder see when i grind it it comes out nice and fine like this just as little powder that'll be perfect and you know it this thisditio needs one more thing it needs some a rugala arugla is this green letice like this its it's pretty good it's a rggo him throw that and there we'll keep that here so we've got our rugla our butter and our pepper all ready to go our posta is still cooking here let's give it a tle bit of e stir and see how we're doing iit's almost there which means that it is perfect for us right now cause we don't want it to be done just quite yet we have a little bit more work to do see the noodles ares learing to bend a little bit swirling around just make sure that everything's getting cooked evenly nothing is sticking together nobody wants sticky noodles in there possa dish so we have some other things we need to do the first thing that we need to do is melt our butter so here are three pieces of hat butter we'll throw it in our big pot here turn on the stove make sure that we have our wooden spoon at the ready so we can stir get that butter melting is can it take just a second but then once it's turring to melt we'eging to add a cup of this postal water and also worging a just add pepper pepper and pepper and pepper and pepper and then aure post of water anyo what were ging to go and stir that up a little bit and then our noodles are all done so let's let's get these noodles out put em all here in the pot out of that big pot of water and in with her butter and er pepper in our apos to water so we can go ahead and finish is up people are hungry the family is ready to eat and this is this is the part where like i said this is where i feel like i belong and so an i making sure i i get all this right and i want to make sure to have dinner with my family to night and this is just where i feel like i can be confident i can be in the confident in the kitchen because i know what i'm doing i'm happy there i feel like i can give something to my family and we enjoy a meal together and i i hope that you have a place too where you feel confident you feel happy you feel like you belonged this is deathling one those places for me bus as i finished up this meal my family starting to come down from upstairs from different places will just add that arugla in there for them and theyre trying to look over my shoulder and see this meal that i have prepared in it it means that we can all sit down together and have dinner and we can feel comfortable and confident with each other so just the few finishing touches and dinner is"
},
"logs": "Converting video to audio...\nConverting audio to transcript...\nTranscribing via local model\nComparing transcripts...\nCalculating video cutting points...\nCreating new video...",
"metrics": {
"predict_time": 36.949084,
"total_time": 36.985446
},
"output": {
"video": "https://replicate.delivery/pbxt/xduF0ajGeGVtLyRHOFQVfbJgWzvnozWrRNjslkmGtTthq4ejA/tmp0hzjmplacooking.mp4",
"transcription": null
},
"started_at": "2023-12-04T13:47:42.397327Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/fmaylktbqqdgxdlmdtwjhgbuxq",
"cancel": "https://api.replicate.com/v1/predictions/fmaylktbqqdgxdlmdtwjhgbuxq/cancel"
},
"version": "5bb1266ac7f4e6678f967f901691827cbb993b0eec76c6ff278f3434a2b940dd"
}
Converting video to audio...
Converting audio to transcript...
Transcribing via local model
Comparing transcripts...
Calculating video cutting points...
Creating new video...
This output was created using a different version of the model, jd7h/edit-video-by-editing-text:5bb1266a.