Hammedalmodel/aeneas
4
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
subtitle-sync
subtitle-sync repository contains simple app with for subtitle file generation from text and audio.
Project Setup
Clone the Repository
git clone https://github.com/rizwanahmad8311/subtitle-sync.git
cd subtitle-syncThe required version of python for this project is 3.10.Make sure you have the correct version.
Set up Virtual Environment
Install Virtualenv
sudo apt update
sudo apt install python3-venvCreate Virtual Environment
python3 -m venv venvActivate Virtual Environment
source venv/bin/activateInstall Requirements
pip install -r requirements.txtRunning the Server
python app.pySubtitle Sync APP
You can now access the app:
Dockerized Server
Usage
Build the Docker Image
Open cmd/shell and change location where Dockerfile is located and run the following command. This may take a while (6-10 minutes) depending upon internet speed.
docker build -t subtitle-sync .-t subtitle-syncnames your imagesubtitle-sync.means Dockerfile is in the current directory
Run the Docker Container
docker run -p 7860:7860 subtitle-syncRun in Detached Mode
docker run -d -p 7860:7860 --name subtitle-container subtitle-syncRun the following command to check the running containers
docker psEnvironment Variables
-d- This command starts the container in the background, allowing you to use your terminal freely.
Subtitle Sync APP
You can now access the app:
