Skip to content

Commit

Permalink
Merge pull request #695 from manikumarreddyu/apiii
Browse files Browse the repository at this point in the history
Apiii
  • Loading branch information
manikumarreddyu authored Oct 27, 2024
2 parents ba8daac + 43d61fa commit eb66696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/SoilTestingCenters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ export default function SoilTestingCenters() {
setError('');
setLoading(true);
try {
const response = await axios.post('http://localhost:5000/find_soil_labs', {
const response = await axios.post('https://agrotech-api.onrender.com/soil_labs', {
location: location,
});


if (response.status === 200) {
setLabs(response.data);
setError('');
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/models/Fertilizer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export default function Component() {

const handlePredictClick = (e) => {
e.preventDefault();
// const url = "https://agro-ai-1.onrender.com/fertilizer_predict";
// https://agro-kdxo.onrender.com/

const url = "https://agrotech-api.onrender.com/fertilizer_predict";
// const url = "http://127.0.0.1:5000/fertilizer_predict";
setIsLoading(true);
Expand Down

0 comments on commit eb66696

Please sign in to comment.