AI-powered hair transplant visualization tool. Upload a photo and see realistic predictions of your hair transplant results.
- Upload your photo or use a sample image
- AI-generated hair transplant predictions
- Before/after comparison view
- 12-month progression timeline visualization
- Download your results
- Next.js 14
- React
- TypeScript
- Tailwind CSS
- Shadcn/ui components
- Node.js 18+
- npm or yarn
- Clone the repository:
git clone https://github.com/fozagtx/surgicalAI.git
cd surgicalAI- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env- Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
surgicalAI/
├── app/ # Next.js app directory
│ ├── page.tsx # Landing page
│ ├── layout.tsx # Root layout
│ ├── globals.css # Global styles
│ └── api/ # API routes
│ └── generate/ # Image generation endpoint
├── components/ # React components
│ ├── ui/ # Shadcn/ui components
│ ├── ImageUploader.tsx # Photo upload component
│ ├── ProgressionGrid.tsx # Timeline grid component
│ └── BeforeAfterSlider.tsx # Comparison slider
├── public/ # Static assets
├── lib/ # Utility functions
└── hooks/ # Custom React hooks
- Visit the landing page
- Click "Try Now" or "Get Your Preview"
- Upload your photo or select a sample
- Click "Generate Result"
- View your predicted transformation
- Download your results
Results are AI-generated simulations and may vary from actual surgical procedures. This tool is for visualization purposes only and should not be considered medical advice.
MIT