Welcome to my project repository! Here, I harness the power of Tiktoken and the OpenAI API to create a Python Streamlit web application with a primary focus on token counting and price estimation.
-
Token Counting: The application efficiently counts tokens, providing insightful analysis and statistics.
-
Price Estimation: Utilizing the OpenAI API, offering accurate price estimations for the tokens analyzed. Please note that accessing this feature requires an API key. It's important to be aware that charges may apply for requests made to the OpenAI API.
-
For accurate price estimations through the OpenAI API, users are required to possess an API key.
-
Additionally, it's crucial to understand that sending requests to the OpenAI API may incur charges.
Thank you for your interest in the project!
-
-
Clone the Repository:
git clone https://github.com/rogerchang1108/OpenAI-API-Token-Counter-with-Tiktoken
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Application:
streamlit run main.py
-
Access the Web Application:
Once the application is running, open your web browser and navigate to the provided local host address.
-
Interact with the Application:
Explore the token counting and price estimation features of my application.
Don't forget to provide the necessary API key for accessing OpenAI services.
-
Enjoy exploring the application!