Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Pwntus/change-hairstyle-ai
Get a new hairstyle in seconds.
https://github.com/Pwntus/change-hairstyle-ai
Last synced: 3 months ago
JSON representation
Get a new hairstyle in seconds.
- Host: GitHub
- URL: https://github.com/Pwntus/change-hairstyle-ai
- Owner: Pwntus
- Created: 2023-03-13T07:37:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T11:35:22.000Z (8 months ago)
- Last Synced: 2024-04-03T21:37:45.729Z (8 months ago)
- Language: Vue
- Homepage: https://changehairstyleai.com
- Size: 850 KB
- Stars: 96
- Watchers: 3
- Forks: 26
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [ChangeHairstyleAI.com](https://changehairstyleai.com)
[![Change Hairstyle AI](./public/img/screenshot.jpg)](https://changehairstyelai.com)
## How it works
This app is powered by:
🚀 [Replicate](https://replicate.com/?utm_source=github&utm_campaign=changehairstyleai), a platform for running machine learning models in the cloud.
✂ [HairCLIP](https://replicate.com/wty-ustc/hairclip?utm_source=github&utm_campaign=changehairstyleai), an open-source machine learning model that generates images of hairstyles by text and a reference image.
▲ [Vercel](https://vercel.com/), a platform for running web apps.
⚡️ Nuxt.js [server-side API handlers](server/api), for talking to the Replicate API.
📦 [Vuetify](https://vuetifyjs.com/en/), a Vue.js component framework for the browser UI.
## Run it yourself
You need a [Replicate API token](https://replicate.com/account?utm_source=github&utm_campaign=changehairstyleai). Copy the contents of [.example.env](.example.env) into a new file in the root of your directory called `.env` and insert the API key there, like this:
```bash
# Get your Replicate API token at https://www.replicate.com/account
NUXT_REPLICATE_API_TOKEN=
```Then, install the dependencies and run the local development server:
```bash
npm install
npm run dev
```Open http://localhost:3000 in your web browser. Done!
## One-click deploy
Deploy this project using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=changehairstyleai):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Pwntus/change-hairstyle-ai&env=NUXT_REPLICATE_API_TOKEN&project-name=change-hairstyle-ai&repo-name=change-hairstyle-ai)