This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Replicate from 'replicate' | |
import * as dotenv from 'dotenv' | |
dotenv.config() | |
const replicate = new Replicate({ | |
auth: process.env.REPLICATE_API_TOKEN, | |
}) | |
async function main() { | |
const training = await replicate.trainings.create( |