# Math Meme Repair with Phi-4 This project uses Microsoft's Phi-4 model fine-tuned to repair incorrect mathematical statements commonly found in memes. The model is trained to identify mathematical errors and provide correct explanations. ## Features - Fine-tuned Phi-4 model for mathematical correction - FastAPI backend for model inference - Jupyter notebooks for both training and inference - Optimized with Unsloth for faster training and inference ## Project Structure ``` ├── app_meme.py # FastAPI application ├── inference_notebook_meme.ipynb # Inference notebook ├── Phi_4_MathMemeRepair.ipynb # Training notebook ├── requirements.txt # Project dependencies └── examples/ # Example memes and corrections ``` ## Installation 1. Install dependencies: ```bash pip install -r requirements.txt ``` 2. Run the FastAPI server: ```bash uvicorn app_meme:app --host 0.0.0.0 --port 7860 ``` ## Examples

