This repository implements a simple virtual try-on app that uses the Gradio framework and the FASHN API as its backend.
This repository requires an API key from a FASHN account. Don't have an account yet? Create an account.
If you already have an account, go to Settings → API → + Create new API key
- Clone this repository:
git clone https://github.com/fashn-AI/tryon-gradio-app
cd tryon-gradio-app- Install the required packages:
pip install -r requirements.txt- Set the environment variable
FASHN_API_KEYto the API key you created on the FASHN platform.
export FASHN_API_KEY="your-api-key"- Run the app:
python app.py- Open your browser and go to
http://localhost:7860/to see the app in action.
If you wish to deploy the app or share it with others, you can use the share function in Gradio to generate a public link.
More on this can be found in the Gradio documentation.
To get the most out of the FASHN API, we recommend to read the following guides to better understand all node features and parameters:
