Skip to content

Hades32/banana-cog-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cog to Banan.dev Adapter

If you ever wanted to run something from Replicate on your own Banana.dev infra, thanks to Replicate's great open model all it needs is a small tool that converts the Cog API format to Banana's.

This repo is that adapter. To use it, create your own repo with a Dockerfile that looks like the following while replaceing user, model, and version hash with what your want:

FROM r8.im/{USER}/{MODEL}@sha256:{VERSION_HASH} # e.g. r8.im/nitrosocke/redshift-diffusion@sha256:b78a34f0ec6d21d22ae3b10afd52b219cec65f63362e69e81e4dce07a8154ef8
RUN mkdir /adapter && cd /adapter && wget https://github.com/Hades32/banana-cog-adapter/releases/download/v0.0.7/cog-adapter && chmod +x cog-adapter
ENTRYPOINT ["/adapter/cog-adapter"]
CMD ["python","-m","cog.server.http"]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published