Views
No views yet
1# 1. Clone
2git clone https://github.com/YOUR_USERNAME/groq-chatbot.git
3cd groq-chatbot
4
5# 2. Install
6pip install -r requirements.txt
7
8# 3. Set API key (get free at console.groq.com)
9export GROQ_API_KEY="gsk_..."
10
11# 4. Run
12streamlit run app.pyapp.pyGROQ_API_KEY = "gsk_your_key_here"groq-chatbot/
├── app.py ← Streamlit UI
├── chatbot.py ← Groq API logic
├── requirements.txt ← Dependencies
├── .streamlit/
│ ├── config.toml ← Theme settings
│ └── secrets.toml ← API key (local only, gitignored)
├── .gitignore
└── README.mdapp.py, add to the personas dict:"🧑⚕️ Doctor": "You are a medical assistant. Always recommend consulting a real doctor."chatbot.py:DEFAULT_MODEL = "llama-3.1-8b-instant" # fastestchatbot.py:MAX_HISTORY_TURNS = 40