Use Deno remote imports to provide packages for each Replicate model
mattt opened this issue · 0 comments
mattt commented
From https://docs.deno.com/runtime/manual/basics/modules/#remote-import:
import allows you to include and use modules held elsewhere, on your local file system or remotely.
import replicate from "https://replicate.com"
import sd3 from "https://replicate.com/stability-ai/stable-diffusion-3"
const image = replicate.run(sd3, { input: { "prompt": "an astronaut riding a rainbow unicorn" })We could use this feature to provide typed interfaces for model inputs and outputs.
Support for private models could be possible with DENO_AUTH_TOKENS.