Token Viz is a project that utilizes FastAPI, Hugging Face, and basic HTML, JS, and CSS to visually demonstrate tokenization.
- Clone the repository:
git clone https://github.com/your-username/token-viz.git
- Navigate to the project directory:
cd token-viz
- Install the required dependencies:
pip install -r requirements.txt
- Start the FastAPI server:
uvicorn main:app --port 8000 --reload
- Open your web browser and go to
http://localhost:8000
to access the Token Viz interface.