CoolFace
Apppublic

Group2255/programming-help-chatbot

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿค– PromptPilot โ€“ Unified AI Chatbot (AML-3304)

This is an MVP AI chatbot developed for the AML-3304 assignment:

"From Tokens to Transformers: Building AI Systems with Embeddings, Generative Models, and MLOps."

PromptPilot combines five intelligent chat modes powered by popular Transformer-based models, enabling users to explore code generation, factual Q&A, probabilistic reasoning, and paraphrasing.


๐Ÿ”„ Chat Modes

ModeDescriptionModel Used
๐Ÿง‘โ€๐Ÿ’ป Code GeneratorGenerate Python code from plain languageSalesforce/codegen-350M-mono
๐Ÿ“˜ General Q&AFactual question answering and explanationsgoogle/flan-t5-base
๐Ÿ“Š Bayesian Q&AUncertainty-based reasoning using samplinggoogle/flan-t5-base + top-k sampling
๐ŸŒ Deep CoderTechnical Q&A and code completion tasksdeepseek-ai/deepseek-coder-6.7b-instruct
๐Ÿ” Transformer ExplorerParaphrasing and text transformation using sequence modelsgoogle/flan-t5-base

๐Ÿš€ Live Demo

Try the chatbot here: ๐Ÿ”— [https://huggingface.co/spaces/Group2255/programming-help-chatbot](https://huggingface.co/spaces/Group2255/programming-help-chatbot)


๐Ÿงฉ Features

  • โ€”Multi-mode UI for interactive exploration
  • โ€”Efficient model switching using st.session_state
  • โ€”GPU-compatible on Hugging Face Spaces
  • โ€”Supports both deterministic and sampling-based generation
  • โ€”Lightweight models for fast response and free-tier compatibility

๐Ÿ’ป Run Locally

โœ… Option 1: Python + Streamlit

bash
git clone https://huggingface.co/spaces/Group2255/programming-help-chatbot
cd programming-help-chatbot
pip install -r requirements.txt
streamlit run app.py