OHO -2
This commit is contained in:
parent
6b36245ca8
commit
9a4c6d7976
4 changed files with 6 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
|||
*.env
|
||||
*.md
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue