Skip to content

Instantly share code, notes, and snippets.

@kiang
Last active October 21, 2023 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiang/0d67d9c929c81de7e1f57e815dc23037 to your computer and use it in GitHub Desktop.
Save kiang/0d67d9c929c81de7e1f57e815dc23037 to your computer and use it in GitHub Desktop.
git clone https://huggingface.co/spaces/aadnk/faster-whisper-webui
cd faster-whisper-webui/
pip install -r requirements.txt
pip install -r requirements-fasterWhisper.txt
apt install nginx ffmpeg
nano /etc/nginx/sites-available/default
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
# try_files $uri $uri/ =404;
proxy_pass http://127.0.0.1:7860;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
nano /etc/nginx/nginx.conf
client_max_body_size 1000M;
service nginx start
cd ~/faster-whisper-webui/
python3 app.py --input_audio_max_duration -1 --server_name 127.0.0.1 --auto_parallel True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment