Coder Social home page Coder Social logo

ai_software_engineering's Introduction

Python 3.9 app coverage

ScreenShot

Description

The application processes sound files. Three functions: recognition, enhancement and separation. The application consists of backend and frontend parts.

Frontend

Based on Streamlit

Backend

Based on Fastapi

Usage

docker compose up -d --build

nginx starts on 80 port

Backend API Documentation:

http://0.0.0.0:80/docs/

Development

Install dev environment:

pip install -r app/requirements-dev.txt
pip install -r client/requirements.txt

Set necessary env variables:

export APP_PROJECT_NAME='AI Software Engineering'
export AUDIO_RATE=16000
export MAX_FILE_SIZE=1*1024*1024
export API_RECOGNITION_URI=http://0.0.0.0:8000/api/recognize

Check flake8:

flake8 app/

Run tests:

pytest

Check tests coverage:

pytest --cov app

Deploy

sudo su
sudo git clone https://github.com/brain4power/ai_software_engineering.git /opt/aise
  • build containers and start application
cd /opt/aise
docker compose up -d --build
  • enable the application to run on system boot
cp configs/prod/aise.service /etc/systemd/system/aise.service
systemctl daemon-reload
systemctl enable aise.service
systemctl start aise.service

Update server

sudo su
cd /opt/aise
git pull
docker compose up -d --build

ai_software_engineering's People

Contributors

toyowl avatar brain4power avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.