Commit ·
8903691
1
Parent(s): 1e8a44d
Simplify README: prominent live demo link, shorter HF section
Browse filesMove Space URL to top; remove long deploy checklist and pre-publish verify steps.
Co-authored-by: Cursor <cursoragent@cursor.com>
README.md
CHANGED
|
@@ -11,13 +11,15 @@ pinned: false
|
|
| 11 |
|
| 12 |
# AI Personal Assistant Comparison Lab
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
| Environment | Assistants | Evaluation | Purpose |
|
| 18 |
| -------------------------------------------------- | ------------ | -------------------------------- | ------------------------------- |
|
| 19 |
| **Local** (`DEPLOYMENT_MODE=local`) | OSS + Gemini | Full 40-prompt eval, both models | Development and fair comparison |
|
| 20 |
-
| **Hugging Face Spaces** (`DEPLOYMENT_MODE=spaces`) | OSS only | Not available on Space | Public demo
|
| 21 |
|
| 22 |
|
| 23 |
Detailed eval snapshot: `[reports/evaluation_report.md](reports/evaluation_report.md)`.
|
|
@@ -257,51 +259,17 @@ python -m evals.generate_report
|
|
| 257 |
|
| 258 |
## Hugging Face Spaces (OSS-only)
|
| 259 |
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
### Deploy checklist
|
| 263 |
-
|
| 264 |
-
1. On [huggingface.co/new-space](https://huggingface.co/new-space), create a **Gradio** Space (empty repo).
|
| 265 |
-
2. Push this project to the Space git remote (`git push space main`). See clone URL on the Space page.
|
| 266 |
-
3. **Space hardware:** CPU basic is enough for 0.5B inference (slower but free-tier friendly).
|
| 267 |
-
4. In **Settings → Repository variables**, add `DEPLOYMENT_MODE` = `spaces`.
|
| 268 |
-
5. **Do not** set `GEMINI_API_KEY` on the Space.
|
| 269 |
-
6. Entrypoint is **`app.py`** (set in the README YAML frontmatter above).
|
| 270 |
-
7. **`requirements.txt`** is runtime-only (torch, transformers, pillow pin). HF installs Gradio separately; local dev uses `requirements-dev.txt`.
|
| 271 |
-
8. Wait for the build, then open the App tab. The first chat message triggers model download (1–3 minutes on CPU).
|
| 272 |
-
|
| 273 |
-
### What changes in Spaces mode
|
| 274 |
|
|
|
|
| 275 |
|
| 276 |
| Feature | Local | Spaces (`DEPLOYMENT_MODE=spaces`) |
|
| 277 |
| ------------------ | -------------------------- | ----------------------------------------- |
|
| 278 |
| Assistant selector | OSS + Gemini | OSS only (fixed label) |
|
| 279 |
| Evaluation tab | Full runner | Read-only note → run locally |
|
| 280 |
-
| `demo.launch` | Default host | `server_name="0.0.0.0"` for HF |
|
| 281 |
| Conversation logs | `logs/conversations.jsonl` | Best-effort (skipped if disk write fails) |
|
| 282 |
|
| 283 |
-
|
| 284 |
-
### Verify locally before publishing
|
| 285 |
-
|
| 286 |
-
**PowerShell:**
|
| 287 |
-
|
| 288 |
-
```powershell
|
| 289 |
-
$env:DEPLOYMENT_MODE="spaces"
|
| 290 |
-
Remove-Item Env:GEMINI_API_KEY -ErrorAction SilentlyContinue
|
| 291 |
-
python app.py
|
| 292 |
-
```
|
| 293 |
-
|
| 294 |
-
**Bash:**
|
| 295 |
-
|
| 296 |
-
```bash
|
| 297 |
-
export DEPLOYMENT_MODE=spaces
|
| 298 |
-
unset GEMINI_API_KEY
|
| 299 |
-
python app.py
|
| 300 |
-
```
|
| 301 |
-
|
| 302 |
-
You should see OSS-only chat, no Gemini selector, and an Evaluation tab that points to the README — with **no crash** without `GEMINI_API_KEY`.
|
| 303 |
-
|
| 304 |
-
**Public demo link:** https://huggingface.co/spaces/nikhith123/AI-Personal-Assistant-Comparison-Lab
|
| 305 |
|
| 306 |
---
|
| 307 |
|
|
|
|
| 11 |
|
| 12 |
# AI Personal Assistant Comparison Lab
|
| 13 |
|
| 14 |
+
**Live demo (OSS only):** https://huggingface.co/spaces/nikhith123/AI-Personal-Assistant-Comparison-Lab
|
| 15 |
+
|
| 16 |
+
Comparing a **local open-source assistant** (`Qwen/Qwen2.5-0.5B-Instruct`) with a **frontier API assistant** (Google **Gemini**) using the same Gradio UI, shared pipeline, memory, guardrails, tools, evaluation harness, and reporting. The Space shows the OSS assistant only; full OSS vs Gemini comparison and evaluation run **locally** (see Setup below).
|
| 17 |
|
| 18 |
|
| 19 |
| Environment | Assistants | Evaluation | Purpose |
|
| 20 |
| -------------------------------------------------- | ------------ | -------------------------------- | ------------------------------- |
|
| 21 |
| **Local** (`DEPLOYMENT_MODE=local`) | OSS + Gemini | Full 40-prompt eval, both models | Development and fair comparison |
|
| 22 |
+
| **Hugging Face Spaces** (`DEPLOYMENT_MODE=spaces`) | OSS only | Not available on Space | [Public demo](https://huggingface.co/spaces/nikhith123/AI-Personal-Assistant-Comparison-Lab) |
|
| 23 |
|
| 24 |
|
| 25 |
Detailed eval snapshot: `[reports/evaluation_report.md](reports/evaluation_report.md)`.
|
|
|
|
| 259 |
|
| 260 |
## Hugging Face Spaces (OSS-only)
|
| 261 |
|
| 262 |
+
Public demo: https://huggingface.co/spaces/nikhith123/AI-Personal-Assistant-Comparison-Lab
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
|
| 264 |
+
Runs **Qwen2.5-0.5B only** (no Gemini API key, no evaluation runner). First chat message may take 1–3 minutes on CPU while the model loads.
|
| 265 |
|
| 266 |
| Feature | Local | Spaces (`DEPLOYMENT_MODE=spaces`) |
|
| 267 |
| ------------------ | -------------------------- | ----------------------------------------- |
|
| 268 |
| Assistant selector | OSS + Gemini | OSS only (fixed label) |
|
| 269 |
| Evaluation tab | Full runner | Read-only note → run locally |
|
|
|
|
| 270 |
| Conversation logs | `logs/conversations.jsonl` | Best-effort (skipped if disk write fails) |
|
| 271 |
|
| 272 |
+
To redeploy: push to the Space git remote with `DEPLOYMENT_MODE=spaces` set in Space variables. Local dev uses `requirements-dev.txt`; the Space uses `requirements.txt` only.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
|
| 274 |
---
|
| 275 |
|