it's-a me, mario! this repo has everything you need to deploy a custom Leap AI model. here we go! ✨
let's get started by forking this repository (button top right), and downloading it to your computer. from there follow the below :)
- Add your credentials in
.env
, following the.envExample
file - Head to
pages/index.tsx
for editing text, prompts, and colors to match your theme - Add new prompts in
helpers/prompts.ts
- Adjust the number of images generated w/ the numberOfImages parameter in
/pages/api/generate
- Open the terminal
- Run
npm install
to grab the necceary packages - Hit
npm run dev
to start your server onhttp://localhost:3000
To use your own fine-tuned model:
- Go to
tryleap.ai
, create a model, queue a training, and wait for it to finish OR follow steps in the Replit here - Replace the model ID in
/pages/api/generate
to fit your new model you created - Replace @leapmario with your model keyword (ie. @me) in
helpers/prompts.ts
- Push all your changes to Github (or another git provider)
- Head to vercel.app, import your repo, and hit deploy
- Go to settings of the deployment, add your .env, and rebuild
This is huge! You've got a custom model running on the web, and you can share it with the world. Now go ahead and generate some mario!
if you got value from this -- plz give us a star 🙂⭐