A simple Python application utilizing Hugging Face's chat models as an open-source alternative to OpenAI.
Important
The project is not complete and is still under development (Only Login/ Auth is working).
To run the application locally, please ensure the following prerequisites are met (optional when no new major features are added)
- Python >=3.8
- httpx ~0.26.0
- configparser >=6.0.0
- Download and install the latest version of Python.
- Install the required libraries by running:
pip install -r requirements.txtIt is recommended to create a virtual environment to isolate package dependencies. To do so, follow these steps:
On Windows:
py -m venv venv
venv\Scripts\activateOn Linux / macOS:
python3 -m venv venv
source venv/bin/activateExecute the main script main.py located in the root directory:
python main.pyStart interacting with the AI chatbot! 🎉
Use the application to interactively ask questions and engage in meaningful conversations powered by Hugging Face AI models. Explore the wide range of pre-trained models available at HuggingChat Settings. (Customize the model settings in the config.ini file according to your preference.)
The project contains the following components:
- Backend API Wrapper
- Configuration Management
- Text Extraction for Response (coming soon)
Key directories and files include:
config.ini: Global configuration file controlling app settings, including authentication tokens (and preferred chatbot models).authfolder: Holds scripts for accessing Hugging Face APIs and processing responses effectively.utilsfolder: Contains utility scripts for text extraction, configuration management, and additional tasks.requirements.txt: Provides a list of essential packages and respective versions for the proper functioning of the complete system.
TODO
This project is governed by the Apache 2.0 License - refer to the LICENSE.md file for further details.
TODO Have fun coding! 😊