Voice Dev Final
This commit is contained in:
parent
b181671271
commit
85b54fbf9d
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue