diff --git a/Backend/.env b/Backend/.env index 82afe25..6a1ecba 100644 --- a/Backend/.env +++ b/Backend/.env @@ -1,4 +1,4 @@ MONGO_URI=mongodb://localhost:27017/chat HOST=0.0.0.0 PORT=3000 -CORS_ORIGIN=http://10.231.26.23:3000 +CORS_ORIGIN=http://192.168.1.12:3000 diff --git a/Backend/index.js b/Backend/index.js index 61f65ee..a660bae 100644 --- a/Backend/index.js +++ b/Backend/index.js @@ -40,7 +40,7 @@ app.post('/api/transaction/add', async (req, res) => { const { description, amount } = req.body; // Call your AI prediction endpoint - const predictRes = await axios.post('http://10.231.26.23:5000/api/predict', { + const predictRes = await axios.post('http://192.168.1.100:5000/api/predict', { description, }); @@ -144,7 +144,7 @@ app.post('/api/transactions/voice', async (req, res) => {     const description = cleaned || 'misc';     // Step 3: Predict category using your Flask API -    const predictRes = await axios.post('http://10.231.26.23:5000/api/predict', { +    const predictRes = await axios.post('http://192.168.1.100:5000/api/predict', {       description,     }); diff --git a/Frontend/lib/other_pages/enviroment.dart b/Frontend/lib/other_pages/enviroment.dart index bede489..bf24741 100644 --- a/Frontend/lib/other_pages/enviroment.dart +++ b/Frontend/lib/other_pages/enviroment.dart @@ -1,3 +1,3 @@ class Environment { - static const String baseUrl = 'http://10.231.26.23:3000'; + static const String baseUrl = 'http://192.168.1.100:3000'; }