Spaces:
Sleeping
Sleeping
AI Programming Tutor - Hugging Face Spaces Deployment
π Quick Start
This is a simplified version of the AI Programming Tutor designed to work reliably on Hugging Face Spaces.
Files for Deployment:
app.py- Super simple version (20 lines) - RECOMMENDEDstreamlit_app.py- Full featured version (109 lines)requirements.txt- Only Streamlit dependency.streamlit/config.toml- Minimal configuration
Deployment Steps:
Upload to Hugging Face Spaces
- Create new Space
- Choose "Streamlit" as SDK
- Upload these files
Use
app.pyfor guaranteed success- Only 20 lines of code
- No complex dependencies
- Works immediately
Alternative: Use
streamlit_app.py- More features and better UI
- Tabbed interface
- Still minimal and reliable
Features:
- β Code Analysis: Enter Python code for feedback
- β Strengths & Weaknesses: Identify what's good and what needs improvement
- β Step-by-Step Improvements: Clear guidance on how to improve
- β Learning Points: Key concepts to understand
- β Comprehension Questions: Test your understanding
- β Code Fixes: See improved versions
Demo Mode:
The app currently runs in demo mode, providing structured educational feedback without requiring the fine-tuned model. This ensures it works immediately on Hugging Face Spaces.
Future Enhancement:
To add the fine-tuned model:
- Upload model to Hugging Face Model Hub
- Add HF_TOKEN to Spaces secrets
- Update the app to use the model
Status: β Ready for deployment on Hugging Face Spaces