Skip to content

replicate/replicate-sam-2-clicker

Repository files navigation

🖱️ SAM-2 Clicker

Try it out at replicate-sam-2-clicker.vercel.app

How it works

This app is powered by:

🚀 Replicate, a platform for running machine learning models in the cloud.

🖍️ SAM-2, an open-source machine learning model that segments images and video.

Vercel, a platform for running web apps.

⚡️ Nuxt.js server-side API routes, for talking to the Replicate API.

🍃 Tailwind CSS, for styles.

Development

  1. Install a recent version of Node.js
  2. Copy your Replicate API token and set it in your environment:
echo "REPLICATE_API_TOKEN=<your-token-here>" > .env.local
  1. Install dependencies and run the server:
npm install
npm run dev
  1. Open localhost:3000 in your browser. That's it!