Skip to content

feat: add AgriTech component for API integration#1633

Merged
omroy07 merged 1 commit intoomroy07:mainfrom
trivedikavya:bak-14
Feb 22, 2026
Merged

feat: add AgriTech component for API integration#1633
omroy07 merged 1 commit intoomroy07:mainfrom
trivedikavya:bak-14

Conversation

@trivedikavya
Copy link
Copy Markdown
Contributor

@trivedikavya trivedikavya commented Feb 22, 2026

Description:
This pr is related to #1442 in This PR introduces the AgriTechDemo component, a comprehensive integration example that connects the React frontend to the Flask-based ML backend. It demonstrates how to handle various data types including JSON for predictions and FormData for image-based disease detection.

Key Features:

  • Interactive Forms: Implemented inputs for soil metrics (N, P, K) and environmental factors for Crop Recommendation.
  • Image Upload Support: Added a disease detection module that handles file selection, image preview, and multipart/form-data submission.
  • Yield Prediction: Integrated a geographic-based yield predictor with support for seasonal and area-based calculations.
  • Robust State Management: Includes built-in loading spinners, error handling for API failures, and conditional rendering for ML results.
image

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 22, 2026

@trivedikavya is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@omroy07 omroy07 merged commit 89605a5 into omroy07:main Feb 22, 2026
2 of 5 checks passed
@github-actions
Copy link
Copy Markdown

🎉 Congrats @trivedikavya on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants