Spaces:
Sleeping
Sleeping
Commit History
-
for HF
Priyanka O6c540f4 -
Update Dockerfile
Priyanka OUnverified signature9b89719 -
docker fix
Priyanka Oc56714b -
Ready for deployment
Priyanka Oc1cb12d -
Replace em dashes with regular dashes and colons across all READMEs
priyanka +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>5011469 -
Update license section to link to MIT LICENSE file
priyanka +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>5153df0 -
Update Lab 06 description in learning path to mention LLM evals
priyanka +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>38780fa -
Update README.md
Priyanka OUnverified signature22b0a4e -
Add test suite and LLM output evals for Lab 06
priyanka +1: Claude Opus 4.6- Add test_app.py with 17 fast API tests (mocked) and 9 live LLM eval tests - Update Lab 06 README with Testing & Evaluating LLM Outputs section - Add lab_06_llm_api to pytest testpaths and register llm_eval marker - Update main README folder structure to include test_app.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b8d20a2
-
Add system_prompt parameter to _call_huggingface
priyanka +1: Claude Opus 4.6Allows different endpoints to use different system prompts (e.g. /explain uses urgency analysis, /summarize uses summarization). Updated challenge solutions to use the new parameter. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f5f64c0 -
Add error handling for unsupported (400) and not found (404) models
priyanka +1: Claude Opus 4.6Now gives clear, actionable messages like "Model X is not supported. Try a different model. Use GET /v1/models to see available models." instead of a raw HuggingFace error dump. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>7051486 -
Fetch available models live from HuggingFace instead of hardcoding
priyanka +1: Claude Opus 4.6GET /v1/models now calls router.huggingface.co/v1/models and filters for chat/instruct models. Falls back to a curated list if the API call fails. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ff5fb5e -
Replace Gemma 2B with Llama 3.2 3B in model list
priyanka +1: Claude Opus 4.6Gemma 2B is not supported by free HF inference providers. Replaced with Llama 3.2 3B which works on the free tier. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>2380b02 -
Fix default model: use Llama 3.1 8B (supports chat completions)
priyanka +1: Claude Opus 4.6Mistral-7B-Instruct-v0.3 doesn't support the chat completions API. Switched to models that do: Llama 3.1 8B, Llama 3.2 1B, Qwen 2.5 7B, Gemma 2 2B. Updated app, playground dropdown, README, and solutions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>51d803c -
Add .env file support for API keys in Lab 06
priyanka +1: Claude Opus 4.6- Add python-dotenv dependency and load .env at startup - Create .env.example template (committed, unlike .env) - Update README: .env file is now the recommended approach - .env already in .gitignore so secrets stay safe Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>af340b2 -
Add interactive web playground (/play) to Lab 06
priyanka +1: Claude Opus 4.6- Model selector dropdown (Mistral, Gemma, Phi-3, Llama) - Temperature and max_tokens sliders with live values - Example clinical notes for quick testing - Shows LLM response with cached/live badge and metadata - Error states displayed inline Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>015302a -
Rewrite Lab 06 to use HuggingFace's new OpenAI-compatible API
priyanka +1: Claude Opus 4.6- HuggingFace migrated to router.huggingface.co/v1/chat/completions - Uses OpenAI-compatible chat format (messages array with roles) - Env var renamed from HF_API_TOKEN to HF_TOKEN (HF standard) - Updated token creation link to fine-grained with inference permissions - Updated mermaid diagram and solutions to match new format Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>dcde5ba -
Fix HuggingFace API URL: use router.huggingface.co
priyanka +1: Claude Opus 4.6The old api-inference.huggingface.co endpoint returns 410 Gone. HuggingFace now routes through router.huggingface.co. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>961605c -
Add caching note: Python dict vs Redis comparison in Lab 06
priyanka +1: Claude Opus 4.6Explains tradeoffs and shows what production Redis code looks like, giving learners a roadmap for future learning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c31e708 -
Add Lab 06: LLM-Powered API with HuggingFace
priyanka +1: Claude Opus 4.6- New lab teaching how to call external LLM APIs and build a wrapper - Covers API key management, prompt engineering, rate limiting, caching - LLM parameters (temperature, max_tokens) exposed as API inputs - Challenge solutions in solutions/lab_06_challenges.md - Add requests dependency to pyproject.toml - Update main README with Lab 06 in learning path and folder structure - Update Lab 05 README to link to Lab 06 as next step Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d19ffaf -
Add low-confidence explainer in Lab 03 and challenge solutions for Lab 04
priyanka +1: Claude Opus 4.6- Add "Why Is My Confidence Score Low?" section in Lab 03 README - Create solutions/lab_04_challenges.md with all 3 challenge answers - Link solutions from test_api.py YOUR TURN section Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>27755d2 -
Move root endpoint to Lab 03 challenge, add solutions file
priyanka +1: Claude Opus 4.6- Removed root / from Lab 03 (learners add it as Challenge 1) - Created solutions/lab_03_challenges.md with answers for all 3 challenges: root + stats, confidence filter, batch predictions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ba9b8bb -
Add root endpoint to Lab 03 to avoid 404 on /
priyanka +1: Claude Opus 4.6Same fix as Lab 01 — learners expect / to return something useful. Now shows a welcome message with links to /docs, /v1/predictions, and /v1/model/info. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>be6c23e -
Add cd .. reminders across all labs
priyanka +1: Claude Opus 4.6Learners moving between labs may still be in a subfolder. Each lab now reminds them to go back to the project root first. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>8f2b17f -
Fix Challenge 3 solution to match simplified patient model
priyanka +1: Claude Opus 4.6- Removed condition field reference (patients now have name/age/gender) - Search matches on name only - Fixed example= to examples=[] (Pydantic v2) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c40bcef -
Fix broken URLs: citation repo link and Render example URL
priyanka +1: Claude Opus 4.6- Citation: po-DRA/REST-API-Builder -> po-DRA/API (actual repo) - Render example: use placeholder instead of nonexistent URL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>91fa6eb -
Remove broken Analytics Vidhya and Towards Data Science links
priyanka +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>7d09f95 -
Add curl section to Lab 00 for testing APIs from terminal
priyanka +1: Claude Opus 4.6Shows how to check if any API is alive, useful curl flags, and examples for the Lab 01 server. Placed after the request-response diagram for natural flow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>614722e -
Add Postman blog on API types to reference materials
priyanka +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b7b224e -
Add Step 0: add-two-numbers with interactive UI
priyanka +1: Claude Opus 4.6Learners now start with the simplest possible API — add two numbers. Includes a /play page with input fields and a Calculate button that calls GET /add and shows both the result and the raw API call. This gives an instant "I built an API!" moment before moving to the patient CRUD endpoints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c98dee1 -
Add mermaid diagrams for request-response lifecycle
priyanka +1: Claude Opus 4.6- Lab 00: sequence diagram showing the full request-response cycle with validation, processing, and response steps - Main README: flowchart showing how a clinical note flows through the API to get a prediction Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>efba6ee -
Simplify Lab 01 to progressive uncomment-and-try approach
priyanka +1: Claude Opus 4.6- Simplified patient model to name, age, gender - Only GET is active on startup - POST, PUT, PATCH, DELETE are commented out with clear STEP labels - Learners uncomment one verb at a time, save, and try in /docs - README rewritten to guide through each step Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3a0e964 -
Add root endpoint to Lab 01 to avoid 404 on /
priyanka +1: Claude Opus 4.6Beginners hitting http://127.0.0.1:8000/ got a confusing 404. Now they see a welcome message pointing to /docs and /v1/patients. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>dc453c2 -
Update README.md
Priyanka OUnverified signaturebf1db25 -
Update README.md
Priyanka OUnverified signaturee128660 -
Update README.md
Priyanka OUnverified signaturefc3eb37 -
Add MIT license
priyanka +1: Claude Opus 4.6Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a88289c -
Rebuild repo as REST-API-Builder tutorial
priyanka +1: Claude Opus 4.6Replace the old step-based structure with a 6-lab hands-on tutorial that teaches REST fundamentals, builds a clinical urgency classifier, exposes it as a FastAPI REST API, tests with pytest, and deploys via Render/HuggingFace/Docker. Uses modern tooling (uv, ruff, pyproject.toml). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>79fcd5e -
Update README.md
Priyanka OUnverified signature80e72db -
Update README.md
Priyanka OUnverified signature81836fb -
Update link format in README.md
Priyanka OUnverified signature47b0a1e -
Update README.md
Priyanka OUnverified signature765addf -
Add link to API learning roadmap in README
Priyanka OUnverified signatureAdded a link to the Ultimate API Learning Roadmap.be59d00 -
Add image to README for 1-Hour Roadmap
Priyanka OUnverified signatureAdded an image to the README for visual context.797b996 -
Add files via upload
Priyanka OUnverified signature3734c3f -
Initial commit
Priyanka OUnverified signature535d9d6