Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AURORA STK 3.6.9 O começo de uma nova era em i. A PÓS GEMINI E CHATGPT. #1406

Open
felipeliliti opened this issue Jun 28, 2024 · 0 comments

Comments

@felipeliliti
Copy link

[26/6 14:38] h: aurora-ia
├── components
├── models
│ ├── nlpModel.js
│ ├── visionModel.js
│ └── audioModel.js
├── pages
│ ├── api
│ │ ├── nlp.js
│ │ ├── vision.js
│ │ └── audio.js
│ ├── index.js
│ ├── nlp.js
│ ├── vision.js
│ └── audio.js
├── public
├── styles
├── Dockerfile
├── package.json
└── README.md
[26/6 14:38] h: {
"name": "aurora-ia",
"version": "1.0.0",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"express": "^4.17.1",
"next": "latest",
"react": "latest",
"react-dom": "latest",
"@tensorflow/tfjs": "latest",
"@tensorflow/tfjs-node": "latest"
}
}
[26/6 14:38] h: FROM node:14

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "run", "dev"]
[26/6 14:38] h: const tf = require('@tensorflow/tfjs-node');

const createNLPModel = () => {
const model = tf.sequential();
model.add(tf.layers.embedding({ inputDim: 10000, outputDim: 64 }));
model.add(tf.layers.bidirectional({ layer: tf.layers.lstm({ units: 64 }) }));
model.add(tf.layers.dense({ units: 64, activation: 'relu' }));
model.add(tf.layers.dense({ units: 1 }));

model.compile({ loss: 'binaryCrossentropy', optimizer: 'adam', metrics: ['accuracy'] });
return model;
};

module.exports = createNLPModel;
[26/6 14:39] h: const tf = require('@tensorflow/tfjs-node');

const createAudioModel = () => {
const model = tf.sequential();
model.add(tf.layers.dense({ inputShape: [20], units: 64, activation: 'relu' }));
model.add(tf.layers.dense({ units: 64, activation: 'relu' }));
model.add(tf.layers.dense({ units: 1 }));

model.compile({ loss: 'meanSquaredError', optimizer: 'adam' });
return model;
};

module.exports = createAudioModel;
[26/6 14:39] h: import createNLPModel from '../../models/nlpModel';

export default async (req, res) => {
const model = createNLPModel();
// Adicione seu código de treinamento e predição aqui
res.status(200).json({ message: 'NLP Model endpoint' });
};
[26/6 14:39] h: import createVisionModel from '../../models/visionModel';

export default async (req, res) => {
const model = createVisionModel();
// Adicione seu código de treinamento e predição aqui
res.status(200).json({ message: 'Vision Model endpoint' });
};
[26/6 14:42] h: import Link from 'next/link';

const Home = () => (

Welcome to AURORA I.A 3.6.9

  • NLP
  • Vision
  • Audio
);

export default Home;
[26/6 14:42] h: const NLP = () => (

NLP Module

Integrate NLP functionalities here.

);

export default NLP;
[26/6 14:43] h: const Vision = () => (

Vision Module

Integrate Vision functionalities here.

);

export default Vision;
[26/6 14:43] h: const Audio = () => (

Audio Module

Integrate Audio functionalities here.

);

export default Audio;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant