Coder Social home page Coder Social logo

prateekralhan / speech-2-data-expert.ai-streamlit Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 521 KB

A minimalistic automatic speech recognition streamlit based webapp powered by wav2vec2-base-960h Facebook model provided by HuggingFace transformers and the NL API provided by expert.ai

License: MIT License

Python 93.96% Dockerfile 3.65% Procfile 0.40% Shell 1.99%
expertai huggingface-transformers opensourceforgood python3 streamlit-webapp wav2vec2-base-960h

speech-2-data-expert.ai-streamlit's Introduction

๐Ÿ—ฃ Speech <2> Data Streamlit based Web App โœจ Project Status: Active

A minimalistic automatic speech recognition streamlit based webapp powered by wav2vec2-base-960h Facebook model provided by HuggingFace transformers and the NL API provided by expert.ai This is an extension of the work done by therealexpertai.

demo

Installation:

  • Simply run the command pip install -r requirements.txt to install the necessary dependencies.
  • Get your API usage Credentials for NL API from expert.ai. You can register here for free tier access.

Usage:

  1. Enter your credentials in the creds.py file. You can also save them as your system environment variables as per your convenience.
  2. Simply run the command:
streamlit run app.py
  1. Navigate to http://localhost:8501 in your web-browser. This will launch the web app :

1 2

  1. By default, streamlit allows us to upload files of max. 200MB. If you want to have more size for uploading audio files, execute the command :
streamlit run app.py --server.maxUploadSize=1028

Running the Dockerized App

  1. Ensure you have Docker Installed and Setup in your OS (Windows/Mac/Linux). For detailed Instructions, please refer this.
  2. Navigate to the folder where you have cloned this repository ( where the Dockerfile is present ).
  3. Build the Docker Image (don't forget the dot!! ๐Ÿ˜„ ):
docker build -f Dockerfile -t app:latest .
  1. Run the docker:
docker run -p 8501:8501 app:latest

This will launch the dockerized app. Navigate to http://localhost:8501/ in your browser to have a look at your application. You can check the status of your all available running dockers by:

docker ps

Heroku Deployment (Optional)

  1. Navigate to the Heroku Platform and login using your E-mail. In case you don't have an account, you can sign-up using your E-mail.
  2. After account creation and successful login, click on Create New App. The platform shall now ask you to choose a suitable name for the webapp and the corresponding region (Europe/United States)
  3. Add a payment method and click on Create App. (Heroku's free tier plan for webapps deployment has ended. For more details, you can refer this.)
  4. Open a new tab and login into your Github Account and create a git repository comprising of this entire directory's files and sub-directories.
  5. Switch back to the heroku app configuration and under the Deploy menu, select Github under the Deployment Method category.
  6. You need to successfully authenticate and authorize access to your Github account by Heroku. After successful authorization, search for your git repository name and select Connect.
  7. Go to Manual Deploys section and select the suitable branch name from the git repository which you wish to deploy.
  8. Click Deploy Branch. This will launch the webapp deployment and you can view the build logs. This may take several minutes and upon completion, you should see a message stating:
Launching...
Released v1
https://<heroku app name>.herokuapp.com/ deployed to Heroku
  1. You can now navigate to the URL https://.herokuapp.com/ in order to view your deployed webapp. For any troubleshooting, you can refer their documentation.

speech-2-data-expert.ai-streamlit's People

Contributors

prateekralhan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

tuhinmallick

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.