pip install replicate
Next, copy your API token and authenticate by setting it as an environment variable:
export REPLICATE_API_TOKEN=[token]
Then, run the model:
import replicate output = replicate.run( "devxpy/cog-wav2lip:8d65e3f4f4298520e079198b493c25adfc43c058ffec924f2aefc8010ed25eef", input={"face": open("path/to/file", "rb")} ) print(output)
Last updated 2 months ago