This project harnesses the power of the StarChat Beta text generation model to serve as a helpful coding assistant. StarChat Beta is an advanced AI model designed to assist with coding tasks. To learn more about StarChat Beta, visit HuggingFace's StarChat Beta.
Unlike traditional approaches that involve downloading and using specific models, this project leverages a Longchain architecture. It seamlessly accesses Hugging Face's free models for text generation without the need for downloading any models to your computer. This allows for efficient and hassle-free text generation with the assistance of StarChat Beta.
Get started with your coding assistant and enjoy productive coding sessions! ✨
To isolate the project from other Python installations, create a virtual environment using the following commands:
python -m venv venv
# Windows
source venv/Scripts/Activate
# Mac and Unix
source venv/bin/activate
Install the required dependencies from requirements.txt by running the following command:
pip install -r requirements.txt
Create a .env
file in the project directory and assign your Hugging Face API token to the variable HUGGINGFACEHUB_API_TOKEN like this:
HUGGINGFACEHUB_API_TOKEN=yourapitokenhere
To start the chatbot application, execute the app.py script with your desired prompt:
python app.py 'Your Prompt'