Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,89 +1,50 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: π€
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: streamlit
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
-
# Unified AI Chatbot π€
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
---
|
| 23 |
|
| 24 |
## π Supported Modes
|
| 25 |
|
| 26 |
-
| Mode
|
| 27 |
-
|------|-------------|------------|
|
| 28 |
-
| π§βπ» Code Generator | Generate Python code
|
| 29 |
-
| π General Q&A
|
| 30 |
-
| π Bayesian Q&A
|
| 31 |
|
| 32 |
---
|
| 33 |
|
| 34 |
-
## π
|
| 35 |
|
| 36 |
-
|
| 37 |
-
*(Replace YOUR_USERNAME after deployment)*
|
| 38 |
|
| 39 |
---
|
| 40 |
|
| 41 |
## π» Local Installation
|
| 42 |
|
| 43 |
-
Clone the project and run locally with Python or Docker:
|
| 44 |
-
|
| 45 |
### Option 1: Python + Streamlit
|
| 46 |
|
| 47 |
```bash
|
| 48 |
-
git clone https://
|
| 49 |
-
cd
|
| 50 |
pip install -r requirements.txt
|
| 51 |
streamlit run app.py
|
| 52 |
-
```
|
| 53 |
-
|
| 54 |
-
### Option 2: Docker
|
| 55 |
-
|
| 56 |
-
```bash
|
| 57 |
-
docker build -t unified-chatbot .
|
| 58 |
-
docker run -p 8501:8501 unified-chatbot
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
Then open your browser at: `http://localhost:8501`
|
| 62 |
-
|
| 63 |
-
---
|
| 64 |
-
|
| 65 |
-
## π¦ Project Structure
|
| 66 |
-
|
| 67 |
-
```bash
|
| 68 |
-
βββ app.py # Streamlit application
|
| 69 |
-
βββ requirements.txt # Python dependencies
|
| 70 |
-
βββ Dockerfile # Optional Docker support
|
| 71 |
-
βββ README.md # This file
|
| 72 |
-
βββ space.yaml # (Optional) Hugging Face metadata
|
| 73 |
-
```
|
| 74 |
-
|
| 75 |
-
---
|
| 76 |
-
|
| 77 |
-
## π Assignment Goals Covered
|
| 78 |
-
|
| 79 |
-
- β
MVP AI chatbot with multiple generative models
|
| 80 |
-
- β
Embeddings + Bayesian-style sampling
|
| 81 |
-
- β
PyTorch backend (via Hugging Face Transformers)
|
| 82 |
-
- β
MLOps-ready with Docker and GitHub Actions-ready design
|
| 83 |
-
- β
Deployable on Hugging Face Spaces (CPU Basic)
|
| 84 |
-
|
| 85 |
-
---
|
| 86 |
-
|
| 87 |
-
## π License
|
| 88 |
-
|
| 89 |
-
MIT License β Free for educational and non-commercial use.
|
|
|
|
| 1 |
---
|
| 2 |
+
title: RepoSage AI Chatbot (AML-3304)
|
| 3 |
emoji: π€
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: streamlit
|
| 7 |
+
sdk_version: 1.20.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# π€ RepoSage Unified Chatbot β AML-3304 Final Submission
|
| 13 |
|
| 14 |
+
This is our **MVP AI chatbot** for the AML-3304 course assignment:
|
| 15 |
+
**"From Tokens to Transformers: Building AI Systems with Embeddings, Generative Models, and MLOps."**
|
|
|
|
| 16 |
|
| 17 |
+
It brings together:
|
| 18 |
+
- π§ Bayesian-style Q&A
|
| 19 |
+
- π General Q&A using FLAN-T5
|
| 20 |
+
- π§βπ» Code Generation using CodeGen
|
| 21 |
|
| 22 |
+
All in a single unified Streamlit application β hosted live on Hugging Face Spaces.
|
| 23 |
|
| 24 |
---
|
| 25 |
|
| 26 |
## π Supported Modes
|
| 27 |
|
| 28 |
+
| Mode | Description | Model Used |
|
| 29 |
+
|-----------------|---------------------------------------|----------------------------------|
|
| 30 |
+
| π§βπ» Code Generator | Generate Python code via prompt | `Salesforce/codegen-350M-mono` |
|
| 31 |
+
| π General Q&A | Factual Q&A with FLAN reasoning | `google/flan-t5-base` |
|
| 32 |
+
| π Bayesian Q&A | Top-k sampling from embedding space | FLAN + custom Bayesian logic |
|
| 33 |
|
| 34 |
---
|
| 35 |
|
| 36 |
+
## π Live Demo
|
| 37 |
|
| 38 |
+
π Hugging Face Space: [https://huggingface.co/spaces/Group2255/programming-help-chatbot](https://huggingface.co/spaces/Group2255/programming-help-chatbot)
|
|
|
|
| 39 |
|
| 40 |
---
|
| 41 |
|
| 42 |
## π» Local Installation
|
| 43 |
|
|
|
|
|
|
|
| 44 |
### Option 1: Python + Streamlit
|
| 45 |
|
| 46 |
```bash
|
| 47 |
+
git clone https://huggingface.co/spaces/Group2255/programming-help-chatbot
|
| 48 |
+
cd programming-help-chatbot
|
| 49 |
pip install -r requirements.txt
|
| 50 |
streamlit run app.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|