--- title: Token Cost Calculator emoji: 💰 colorFrom: yellow colorTo: gray sdk: gradio sdk_version: 4.24.0 app_file: app.py pinned: false license: mit --- A Gradio App for Calculating OpenAI API Tokens and Costs. Local setup: ```bash $ python -m venv venv $ source venv/bin/activate $ pip install -r requirements.txt ``` Then run `python app.py` or `gradio app.py` (for debugging auto reloading) to try the app at http://127.0.0.1:7860/