faraday / headshots-starter

Home Page:https://headshots-starter.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ‘¨β€πŸ’Ό Headshot AI - Professional Headshots with AI

Introducing Headshot AI, an open-source project from Leap AI that generates Professional AI Headshots in minutes.

Deploy with Vercel

Headshot AI Demo

How It Works

The app is powered by:

  • πŸš€ Leap AI for AI model training
  • πŸš€ Leap AI to generate headshots
  • β–² Next.js for app and landing page
  • πŸ”‹ Supabase for DB & Auth
  • πŸ“© Resend to email user when headshots are ready
  • ⭐️ Shadcn with Tailwind CSS for styles
  • πŸ”₯ Replit for 1-click app run in the browser

Just add Stripe and you have a Headshot AI SaaS in a box.

Headshot AI Explainer

Running Locally

To create your own Headshot AI app, follow these steps:

  1. Clone the repository:
git clone https://github.com/leap-ai/headshots-starter.git
  1. Enter the headshots-starter directory:
cd headshots-starter
  1. Install dependencies:

    For npm:

    npm install

    For yarn:

    yarn
  2. Create a new Supabase project and create the tables required for the app:

    For this starter repo we disabled Row level permissions, you can enable them as needed for your own security, in the supasbase table settings

    Visualized Schemas

    This code block defines the schema for three tables: images, models, and samples.

    For any table column with foreign_key, make sure to link it while creating the column in Supabase.

    [images]

    • id (int8)
    • modelId (int8) (foreign_key)*
    • uri (text)
    • created_at (timestamptz)

    [models] - (Make sure to enable realtime on this table)

    • id (int8)
    • name (text)
    • type (text)
    • created_at (timestamptz)
    • user_id (uuid) (foreign_key)*
    • status (text)
    • modelId (text)

    [samples]

    • id (int8)
    • uri (text)
    • modelId (int8) (foreign_key)*
  3. Create a Leap AI account

    In your .env.local file:

    • Fill in your_api_key with your Leap API key
    • Fill in your-hosted-url/leap/train-webhook with https://{your-hosted-url}/leap/train-webhook
    • Fill in your-hosted-url/leap/image-webhook with https://{your-hosted-url}/leap/image-webhook
    • Fill in your-webhook-secret with
  4. Create a Resend account

    • Fill in your-resend-api-key with your Resend API Key
  5. Start the development server:

    For npm:

    npm run dev

    For yarn:

    yarn dev
  6. Visit http://localhost:3000 in your browser to see the running app.

One-Click Deploy

Deploy the example using Vercel:

Deploy with Vercel

Or fork the repo and Deploy using Replit.

Additional Use-Cases

Headshot AI can be easily adapted to support many other use-cases on Leap AI including:

Anime AI Demo

  • Pet Portraits

Pet AI Demo

  • Product Shots
  • Food Photography

Product AI Demo

Icons AI Demo

& more!

Contributing

We welcome collaboration and appreciate your contribution to Headshot AI. If you have suggestions for improvement or significant changes in mind, feel free to open an issue!

Resources and Support

License

Headshot AI is released under the MIT License.

About

https://headshots-starter.vercel.app


Languages

Language:TypeScript 97.2%Language:JavaScript 1.7%Language:CSS 1.1%