https://github.com/chiragjoshi12/llama3-chat-interface
A Streamlit-based chat interface using Llama 3.1 model via Groq API.
https://github.com/chiragjoshi12/llama3-chat-interface
chatbot chiragjoshi groq-ai groq-api llama3 streamlit
Last synced: 7 months ago
JSON representation
A Streamlit-based chat interface using Llama 3.1 model via Groq API.
- Host: GitHub
- URL: https://github.com/chiragjoshi12/llama3-chat-interface
- Owner: chiragjoshi12
- Created: 2024-07-24T07:39:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-24T08:24:21.000Z (about 1 year ago)
- Last Synced: 2025-03-26T04:43:20.636Z (7 months ago)
- Topics: chatbot, chiragjoshi, groq-ai, groq-api, llama3, streamlit
- Language: Python
- Homepage: https://llama3-chat-interface.streamlit.app/
- Size: 398 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
Awesome Lists containing this project
README
# Llama 3.1 AI Chat Interface
This repository contains a Streamlit-based chat interface utilizing the Llama 3.1 model through the Groq API. The app allows users to interact with different versions of the Llama 3.1 model and receive responses based on their prompts.

***You can try the live [application here](https://llama3-chat-interface.streamlit.app/).***
## Features
- **Model Selection:** Choose from different Llama 3.1 models.
- **Chat Interface:** Enter prompts and get responses from the selected model.
- **Error Handling:** Displays appropriate messages for errors or missing prompts.## Setup
1. **Clone the Repository:**
```bash
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name
2. **Install Dependencies:**
```bash
pip install -r requirements.txt
3. **Get Groq API Key:**Sign up for an account at [Groq](https://groq.com/) and obtain your API key.
4. **Configure Environment Variables:**
Create a `.env` file in the root directory of the project with the following content:
```bash
GROQ_API_KEY=
5. **Run the Application:**Start the Streamlit app by running:
```bash
streamlit run app.py---
Readme made with 💖 using [README Generator by Chirag Joshi](https://github.com/chiragg-ai/)