Giter Site home page Giter Site logo

whisper-on-aws-jumpstart's Introduction

Whisper on EC2 jumpstart

Introduction:

Through Cloudformation on AWS, create a VPC network environment with one click, and deploy an Whisper model within it to run UI based on Streamlit.

Project Includes:

  • ui.py: A Python application based on Streamlit, providing a simple Web interface to use the whisperx model, converting audio to txt.

  • whisper.yaml: An AWS Cloudformation YAML file that automatically provides AWS G4 instances and installs Nvidia drivers and whisperx related libraries to run ui.py.

Install guide:

  • Accept the user agreement for the following models (click through the links bellow and accept the terms):

    1. Segmentation
    2. Voice Activity Detection (VAD)
    3. Speaker Diarization.
  • Create life EC2 keypair through AWS Console.

    图 9

  • Find the ami id through the console interface:

    图 7

  • Create stack in cloudformation console

    图 7

  • Set parameter of the project

    图 10

  • Output IP address after installation:

    图 3

  • Wait around 10 minutes for the EC2 instance to initialize the environment and install the diffusion library.

  • Connect to the EC2 instance via SSH and run

tail -f /var/log/cloud-init-output.log

to check the installation progress.

  • Connect to the EC2 instance via SSH and
run nvidia-smi

You should see the NVIDIA system management interface

图 8

  • Navigate to the whisper directory. The python3 ui.py service is already running by default. You can stop the service with sudo systemctl stop myapp.service.

  • Access the output ip address

http://{ip_address}:8501

to see the UI.

图 6

  • Stop the background service with
 sudo systemctl stop whisper.service
  • Start the background service with
 sudo systemctl start whisper.service
UI Guide:
  • Auto download and transcribe youtube to text

    图 3

  • Upload mp3 and transcribe to text

    图 3

whisper-on-aws-jumpstart's People

Contributors

superyhee avatar

Stargazers

 avatar  avatar

Watchers

 avatar yanjun avatar

Forkers

yanjun-ios

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.