Last active
October 21, 2023 15:56
-
-
Save kiang/0d67d9c929c81de7e1f57e815dc23037 to your computer and use it in GitHub Desktop.
to install https://huggingface.co/spaces/aadnk/faster-whisper-webui in ubuntu 22.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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