CoolFace
Apppublic

Group2255/programming-help-chatbot

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
README.md60 linesDownload Raw Back to root
1---2title: PromptPilot (AML-3304)3emoji: ๐Ÿค–4colorFrom: blue5colorTo: indigo6sdk: streamlit7sdk_version: 1.20.08app_file: app.py9pinned: false10---11 12# ๐Ÿค– PromptPilot โ€“ Unified AI Chatbot (AML-3304)13 14This is an MVP AI chatbot developed for the **AML-3304 assignment**:15 16**"From Tokens to Transformers: Building AI Systems with Embeddings, Generative Models, and MLOps."**17 18PromptPilot combines five intelligent chat modes powered by popular Transformer-based models, enabling users to explore code generation, factual Q&A, probabilistic reasoning, and paraphrasing.19 20---21 22## ๐Ÿ”„ Chat Modes23 24| Mode                    | Description                                                 | Model Used                            |25|-------------------------|-------------------------------------------------------------|----------------------------------------|26| ๐Ÿง‘โ€๐Ÿ’ป Code Generator       | Generate Python code from plain language                    | `Salesforce/codegen-350M-mono`         |27| ๐Ÿ“˜ General Q&A          | Factual question answering and explanations                 | `google/flan-t5-base`                  |28| ๐Ÿ“Š Bayesian Q&A         | Uncertainty-based reasoning using sampling                  | `google/flan-t5-base` + top-k sampling |29| ๐ŸŒ Deep Coder           | Technical Q&A and code completion tasks                     | `deepseek-ai/deepseek-coder-6.7b-instruct` |30| ๐Ÿ” Transformer Explorer | Paraphrasing and text transformation using sequence models  | `google/flan-t5-base`                  |31 32---33 34## ๐Ÿš€ Live Demo35 36Try the chatbot here:  37**๐Ÿ”— [https://huggingface.co/spaces/Group2255/programming-help-chatbot](https://huggingface.co/spaces/Group2255/programming-help-chatbot)**38 39---40 41## ๐Ÿงฉ Features42 43- Multi-mode UI for interactive exploration  44- Efficient model switching using `st.session_state`  45- GPU-compatible on Hugging Face Spaces  46- Supports both deterministic and sampling-based generation  47- Lightweight models for fast response and free-tier compatibility  48 49---50 51## ๐Ÿ’ป Run Locally52 53### โœ… Option 1: Python + Streamlit54 55```bash56git clone https://huggingface.co/spaces/Group2255/programming-help-chatbot57cd programming-help-chatbot58pip install -r requirements.txt59streamlit run app.py60