Voice Dev Final

This commit is contained in:
lokeshramchand-ctrl 2025-08-08 07:08:54 +05:30
parent b181671271
commit 85b54fbf9d
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
MONGO_URI=mongodb://localhost:27017/chat MONGO_URI=mongodb://localhost:27017/chat
HOST=0.0.0.0 HOST=0.0.0.0
PORT=3000 PORT=3000
CORS_ORIGIN=http://10.231.26.23:3000 CORS_ORIGIN=http://192.168.1.12:3000

View file

@ -40,7 +40,7 @@ app.post('/api/transaction/add', async (req, res) => {
const { description, amount } = req.body; const { description, amount } = req.body;
// Call your AI prediction endpoint // 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, description,
}); });
@ -144,7 +144,7 @@ app.post('/api/transactions/voice', async (req, res) => {
    const description = cleaned || 'misc';     const description = cleaned || 'misc';
    // Step 3: Predict category using your Flask API     // 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,       description,
    });     });

View file

@ -1,3 +1,3 @@
class Environment { class Environment {
static const String baseUrl = 'http://10.231.26.23:3000'; static const String baseUrl = 'http://192.168.1.100:3000';
} }