Sign inSign up

javi98/python-openai-generator-srt

By javi98

Updated almost 2 years ago

Application deep learning transcribes and translates either audio files into text to generate .srt

Image
Languages & frameworks
Machine learning & AI
0

991

javi98/python-openai-generator-srt repository overview

Python OpenAI Generator Srt

OpenAI_Whisper

Docker image application that works offline written in python that transcribes and translates either audio or video files into text to generate a subtitle file (.srt) using deep learning libraries such as openai-whisper and argos-translate that contains the following functionalities:

Github repository: https://github.com/JAVI-CC/python-openai-generator-srt



Setup
$ git clone https://github.com/JAVI-CC/python-openai-generator-srt
$ cd python-openai-generator-srt
$ cp .env.example .env # optional
$ docker compose up -d
$ docker compose exec app python3 /code/app/app/main.py

docker-compose.yml
version: '3'
services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    image: javi98/python-openai-generator-srt:1.0.0
    container_name: python-openai-generator-srt-app
    tty: true
    stdin_open: true
    restart: unless-stopped
    #command: python3 /code/app/app/main.py
    volumes:
      - ./:/code/app
      - ./data/audios:/code/app/data/audios
      - ./data/videos:/code/app/data/videos
      - ./data/subtitles:/code/app/data/subtitles
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]

networks: python-openai-generator-srt: driver: bridge

Once you have the containers deployed, You will be shown the CLI to choose the file and language you want to generate the srt file in.

Tag summary

Content type

Image

Digest

sha256:d305a7778

Size

3.4 GB

Last updated

almost 2 years ago

docker pull javi98/python-openai-generator-srt