GPT-X : Leverage Public LLMs for Engaging Conversations. This is a project that demonstrates how to create a chat interface using Hugging Face models.
📃 Table of Contents
- About GPT-X 💬
- Technical Details
- Installation
- Usage
- API
- Contributing
- License
- Author
⭐About GPT-X 💬
- This is a project that demonstrates how to create a chat interface using Hugging Face models. This project uses open source LLM's API in backend and communicates thru its UI chat interface to send and receive data.
- Project Structure - Refer below ⏬ image.

🔨Technical Details:
- HTML5
- CSS
- JavaScript
- Additional libraries used: Incorporated a font-awesome icon library.
🔧Installation & Local Development:
- Clone this repository or download it as zip.
- Install dependencies:
npm install
- Install Vercel CLI globally:
npm install -g vercel
- Run the project locally:
npx vercel dev
☑️ Usage:
- Once running via
vercel dev, openhttp://localhost:3000in your browser. - Enter your prompt/query/question.
- Wait to get response.
- Login to HuggingFace -
https://huggingface.co/ - HUGGINGFACE_API_URL -
https://api-inference.huggingface.co/models - Choose you model. For example -
openai-community/gpt2 - Obtain the HUGGINGFACE_API_KEY
- Test it by hitting via postman or browser.
- !! Important !! - Hide api key using environment variables.
👫 Contributing:
We welcome contributions to this project! If you'd like to contribute, please:
- Fork the repository on GitHub.
- Make your changes and create a pull request.
- Follow any coding style guidelines mentioned in the code (if any).
💳 License:
- This project is licensed under the Open-source [MIT License].
✒️ Author:
- @iamvisshu - Vishal Vishwakarma 😇