Updated Statistics
This commit is contained in:
parent
c1bea8e580
commit
2bae43dae6
1 changed files with 2 additions and 1 deletions
|
|
@ -78,6 +78,7 @@ mongoose.connect('mongodb://localhost:27017/chat', {
|
|||
const transactionSchema = new mongoose.Schema({
|
||||
description: String,
|
||||
amount: Number,
|
||||
|
||||
category: String, // 👈 added category
|
||||
date: { type: Date, default: Date.now },
|
||||
});
|
||||
|
|
@ -90,7 +91,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://192.168.172.140:5000/api/predict', {
|
||||
const predictRes = await axios.post('http://10.117.157.140:5000/api/predict', {
|
||||
description,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue