MCPcopy Create free account
hub / github.com/aleemrehmtulla/generatepotter

github.com/aleemrehmtulla/generatepotter @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
5 symbols 17 edges 6 files 0 documented · 0% updated 3y ago★ 44

Browse by type

Functions 5 Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

generate potter 🧙

you're a coder harry. treat this repo as diagon alley, it has everything you need to deploy a custom LeapML model ✨

let's get started by forking this repository (button top right), and downloading it to your computer. from there follow the below :)

NOTE: if you don't already have a trained model, head to leapml.dev

Setup

  1. Head to pages/index.tsx for editing text, prompts, and colors to match your theme
  2. Replace the model ID in /pages/api/generate to fit your new model you created on leapml.dev
  3. Add your credentials in .env, following the .envExample file
  4. Replace @harry with your model keyword (ie. @me) in helpers/prompts.ts
  5. Add new prompts in helpers/prompts.ts
  6. Adjust the number of images generated w/ the numberOfImages parameter in /pages/api/generate

Run it locally

  1. Open the terminal
  2. Run npm install to grab the necceary packages
  3. Hit npm run dev to start your server on http://localhost:3000

Deploy to the world

  1. Push all your changes to Github (or another git provider)
  2. Head to vercel.app, import your repo, and hit deploy
  3. Go to settings of the deployment, add your .env, and rebuild

Huzah! You've got off localhost 👏

This is huge! You've got a custom model running on the web, and you can share it with the world. Now go forth and generate some potter!

if you got value from this -- plz give us a star 🙂⭐

built w/ ❤️ by aleem & alex

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 5

Languages

TypeScript100%

Modules by API surface

pages/index.tsx2 symbols
pages/api/generate.ts1 symbols
pages/_document.tsx1 symbols
pages/_app.tsx1 symbols

For agents

$ claude mcp add generatepotter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page