Giter VIP home page Giter VIP logo

fork-whisper-ui's Introduction

Streamlit UI for OpenAI's Whisper

This is a simple Streamlit UI for OpenAI's Whisper speech-to-text model. It let's you download and transcribe media from YouTube videos, playlists, or local files. You can then browse, filter, and search through your saved audio files. Feel free to raise an issue for bugs or feature requests or send a PR.

whisper-ui-update-demo.mp4

Setup

This was built & tested on Python 3.11 but should also work on Python 3.9+ as with the original Whisper repo). You'll need to install ffmpeg on your system. Then, install the requirements with pip.

sudo apt install ffmpeg
pip install -r requirements.txt

If you're using conda, you can create a new environment with the following command:

conda env create -f environment.yml

Note: If you're using a CPU-only machine, your runtime can be sped-up by using quantization implemented by @MicellaneousStuff by swapping out pip install openai-whisper from requirements.txt and replacing it with their fork pip install git+https://github.com/MiscellaneousStuff/whisper.git (See related discussion here - hayabhay#20)

Usage

Once you're set up, you can run the app with:

streamlit run app/01_๐Ÿ _Home.py

This will open a new tab in your browser with the app. You can then select a YouTube URL or local file & click "Run Whisper" to run the model on the selected media.

Docker

Alternatively, you can run the app containerized with Docker via the included docker-compose.yml. Simply run:

docker compose up

Then open up a new tab and navigate to http://localhost:8501/

NOTE: For existing users, this will break the database since absolute paths of files are saved. A future fix will be added to fix this.

Changelog

All notable changes to this project alongside potential feature roadmap will be documented in this file

License

Whisper is licensed under MIT while Streamlit is licensed under Apache 2.0. Everything else is licensed under MIT.

fork-whisper-ui's People

Contributors

badbl0cks avatar eidenz avatar hayabhay 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.