{"id":31320566,"url":"https://github.com/rahul-120/crop_recom","last_synced_at":"2026-05-02T22:38:30.438Z","repository":{"id":316573451,"uuid":"1063934254","full_name":"rahul-120/crop_recom","owner":"rahul-120","description":"This project is a Machine Learning based Crop Recommendation System built using Flask. It helps farmers or users decide the most suitable crop to grow based on soil nutrients and environmental conditions.","archived":false,"fork":false,"pushed_at":"2025-09-25T10:43:11.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-02T22:38:19.040Z","etag":null,"topics":["crop-recommendation-system","flask","flask-application","machine-learning","python3","scikit-learn"],"latest_commit_sha":null,"homepage":"https://mahesh2045-crop-recomd.hf.space/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rahul-120.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T10:08:54.000Z","updated_at":"2025-09-25T10:43:14.000Z","dependencies_parsed_at":"2025-09-25T12:24:47.735Z","dependency_job_id":"21c2d70e-55cb-4730-8fa2-22fa4e225705","html_url":"https://github.com/rahul-120/crop_recom","commit_stats":null,"previous_names":["rahul-120/crop_recom"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rahul-120/crop_recom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-120%2Fcrop_recom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-120%2Fcrop_recom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-120%2Fcrop_recom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-120%2Fcrop_recom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahul-120","download_url":"https://codeload.github.com/rahul-120/crop_recom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-120%2Fcrop_recom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32552377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T22:28:24.418Z","status":"ssl_error","status_checked_at":"2026-05-02T22:28:14.225Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crop-recommendation-system","flask","flask-application","machine-learning","python3","scikit-learn"],"created_at":"2025-09-25T16:50:08.687Z","updated_at":"2026-05-02T22:38:30.425Z","avatar_url":"https://github.com/rahul-120.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: Crop Recomd\nemoji: 🌱\ncolorFrom: green\ncolorTo: gray\nsdk: docker\npinned: false\nshort_description: Machine Learning based Crop Recommendation System built using Flask\n---\n\n# 🌱 Crop Recommendation System  \n\n[![Made with Python](https://img.shields.io/badge/Python-3.x-blue?logo=python)](https://www.python.org/)  \n[![Flask](https://img.shields.io/badge/Flask-Web%20Framework-lightgrey?logo=flask)](https://flask.palletsprojects.com/)  \n[![scikit-learn](https://img.shields.io/badge/Scikit--Learn-ML-orange?logo=scikit-learn)](https://scikit-learn.org/)  \n[![Deploy on Hugging Face](https://img.shields.io/badge/Deploy-HuggingFace-yellow?logo=huggingface)](http://mahesh2045-crop-recomd.hf.space/)  \n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)  \n\nThis project is a **Machine Learning based Crop Recommendation System** built using **Flask**.  \nIt helps farmers or users decide the most suitable crop to grow based on soil nutrients and environmental conditions.  \n\n🔗 **Live Demo**: [Crop Recommendation App](http://mahesh2045-crop-recomd.hf.space/)  \n\n---\n\n## 📸 Screenshot  \n\n\u003cimg width=\"424\" height=\"339\" alt=\"Crop Recommendation Demo\" src=\"https://github.com/user-attachments/assets/cb7b19bf-ce71-496f-96b7-32ffcbc8e51c\" /\u003e\n\n---\n\n## 🚀 Features\n- Predicts the best crop based on input values:\n  - 🌾 Nitrogen (N)  \n  - 🌿 Phosphorus (P)  \n  - 🌱 Potassium (K)  \n  - 🌡️ Temperature  \n  - 💧 Humidity  \n  - ⚗️ pH  \n  - ☔ Rainfall  \n- Simple and interactive **web interface** built with Flask.  \n- Model trained on agricultural datasets.  \n- Hosted online using **Hugging Face Spaces**.  \n\n---\n\n## 🛠️ Tech Stack\n- **Python**  \n- **Flask** (Web Framework)  \n- **NumPy** (Data Handling)  \n- **Pickle** (Model Serialization)  \n- **scikit-learn** (Machine Learning)  \n- **HTML/CSS** (Frontend)  \n- **Gunicorn** (Deployment on Hugging Face)  \n\n---\n\n## 📂 Project Structure\n```\n\n├── app.py              # Main Flask application\n├── model.pkl           # Trained ML model\n├── requirements.txt    # Dependencies\n├── templates\n│   └── index.html      # Frontend HTML file\n├── static/             # (Optional) For CSS/JS files\n└── README.md           # Project Documentation\n\n````\n\n---\n\n## ⚙️ Installation \u0026 Usage  \n\n### 1. Clone the repository  \n```bash\ngit clone https://github.com/rahul-120/crop_recom.git\ncd crop_recom\n````\n\n### 2. Create and activate a virtual environment (optional but recommended)\n\n```bash\npython -m venv venv\nsource venv/bin/activate   # On macOS/Linux\nvenv\\Scripts\\activate      # On Windows\n```\n\n### 3. Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### 4. Run the Flask app\n\n```bash\npython app.py\n```\n\n### 5. Open in browser\n\nGo to `http://127.0.0.1:5000/`\n\n---\n\n## 🧠 Model Details\n\n* The model is trained to recommend the most suitable crop based on soil and weather conditions.\n* It uses classification techniques from **scikit-learn** to map environmental features to a set of possible crops.\n\n---\n\n## 🌍 Deployment\n\n* Hosted using **Hugging Face Spaces (Docker SDK)**\n* Live App: [http://mahesh2045-crop-recomd.hf.space/](http://mahesh2045-crop-recomd.hf.space/)\n\n---\n\n## 📦 Requirements\n\n`requirements.txt` (no versions for flexibility):\n\n```\nflask\ngunicorn\nscikit-learn\njoblib\nnumpy\n```\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! 🎉\n\n1. Fork the repo\n2. Create a new branch (`feature-xyz`)\n3. Commit changes\n4. Push to your branch\n5. Open a Pull Request\n\n---\n\n## 📜 License\n\nThis project is licensed under the **MIT License**.\n\n---\n\n### 👨‍💻 Author\n\n**Rahul Bhaskar**\n🔗 [GitHub Profile](https://github.com/rahul-120)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul-120%2Fcrop_recom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahul-120%2Fcrop_recom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul-120%2Fcrop_recom/lists"}