Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kspviswa/tiktokenviewer

An attempt to reimplement TikTokenizer
https://github.com/kspviswa/tiktokenviewer

Last synced: 14 days ago
JSON representation

An attempt to reimplement TikTokenizer

Awesome Lists containing this project

README

        

# TikTokenViewer

A _childish_ attempt to reimplement [TikTokenizer](https://tiktokenizer.vercel.app/) in pure python using [OpenAI TikToken](https://github.com/openai/tiktoken), [streamlit](https://streamlit.io) and streamlit extras including [st-annotated-text](https://github.com/tvst/st-annotated-text/tree/master) and [st-keyup](https://github.com/blackary/streamlit-keyup)

[Live Demo](https://tiktokenviewer.streamlit.app)

![](tiktokenview_demo.gif)

ToDos:

- [ ] Implement the _hover-over_ effect as seen in original [TikTokenizer](https://tiktokenizer.vercel.app/)
- [ ] Extend / Modify [st-keyup](https://github.com/blackary/streamlit-keyup) to also cover the text area case
- [ ] Show token costs per model