From 9a4c6d7976adb5f92b9e3c634fd80391095cf2b0 Mon Sep 17 00:00:00 2001 From: lokeshramchand-ctrl Date: Thu, 14 Aug 2025 12:38:58 +0530 Subject: [PATCH] OHO -2 --- .gitignore | 2 ++ Backend/.env | 2 +- Backend/index.js | 4 ++-- Frontend/lib/other_pages/enviroment.dart | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f220235..a031c5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.env +*.md + diff --git a/Backend/.env b/Backend/.env index dbf9372..a643e6b 100644 --- a/Backend/.env +++ b/Backend/.env @@ -1,4 +1,4 @@ MONGO_URI=mongodb+srv://velar:Lokesh%401234@cluster0.mplyn1q.mongodb.net/finance HOST=0.0.0.0 PORT=3000 -CORS_ORIGIN=http://192.168.1.100:3000 +CORS_ORIGIN=http://192.168.1.10:3000 diff --git a/Backend/index.js b/Backend/index.js index 7f61885..9d248a4 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.31.224:5000/api/predict', { + const predictRes = await axios.post('http://192.168.1.10: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.31.224:5000/api/predict', { +    const predictRes = await axios.post('http://192.168.1.10:5000/api/predict', {       description,     }); diff --git a/Frontend/lib/other_pages/enviroment.dart b/Frontend/lib/other_pages/enviroment.dart index 95fd522..686f796 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.31.224:3000'; + static const String baseUrl = 'http://192.168.1.10:3000'; }