Spaces:
Running
Running
Merge pull request #122 from jhj0517/patch/docker
Browse files- Install.sh +0 -21
- README.md +17 -5
- start-webui.sh +0 -12
Install.sh
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
|
3 |
-
if [ ! -d "venv" ]; then
|
4 |
-
echo "Creating virtual environment..."
|
5 |
-
python -m venv venv
|
6 |
-
fi
|
7 |
-
|
8 |
-
source venv/bin/activate
|
9 |
-
pip install -r requirements.txt
|
10 |
-
|
11 |
-
if [ $? -ne 0 ]; then
|
12 |
-
echo ""
|
13 |
-
echo "Requirements installation failed. please remove venv folder and run install.sh again."
|
14 |
-
deactivate
|
15 |
-
exit 1
|
16 |
-
fi
|
17 |
-
|
18 |
-
echo ""
|
19 |
-
echo "Requirements installed successfully."
|
20 |
-
|
21 |
-
deactivate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -22,7 +22,8 @@ If you wish to try this on Colab, you can do it in [here](https://colab.research
|
|
22 |
- Translate subtitle files using DeepL API
|
23 |
|
24 |
# Installation and Running
|
25 |
-
##
|
|
|
26 |
To run this WebUI, you need to have `git`, `python` version 3.8 ~ 3.10, `CUDA` version above 12.0 and `FFmpeg`.
|
27 |
|
28 |
Please follow the links below to install the necessary software:
|
@@ -33,7 +34,7 @@ Please follow the links below to install the necessary software:
|
|
33 |
|
34 |
After installing FFmpeg, **make sure to add the `FFmpeg/bin` folder to your system PATH!**
|
35 |
|
36 |
-
|
37 |
If you have satisfied the prerequisites listed above, you are now ready to start Whisper-WebUI.
|
38 |
|
39 |
1. Run `Install.bat` from Windows Explorer as a regular, non-administrator user. ( Run `install.sh` if you are using Mac )
|
@@ -44,21 +45,32 @@ If you have satisfied the prerequisites listed above, you are now ready to start
|
|
44 |
|
45 |
And you can also run the project with command line arguments if you like by running `user-start-webui.bat`, see [wiki](https://github.com/jhj0517/Whisper-WebUI/wiki/Command-Line-Arguments) for a guide to arguments.
|
46 |
|
47 |
-
##
|
48 |
|
49 |
-
1.
|
50 |
|
51 |
```sh
|
52 |
docker build -t whisper-webui:latest .
|
53 |
```
|
54 |
|
55 |
-
2.
|
56 |
|
|
|
57 |
```sh
|
58 |
docker run --gpus all -d \
|
59 |
-v /path/to/models:/Whisper-WebUI/models \
|
60 |
-v /path/to/outputs:/Whisper-WebUI/outputs \
|
61 |
-p 7860:7860 \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
whisper-webui:latest --server_name 0.0.0.0 --server_port 7860
|
63 |
```
|
64 |
|
|
|
22 |
- Translate subtitle files using DeepL API
|
23 |
|
24 |
# Installation and Running
|
25 |
+
- ## On Windows OS
|
26 |
+
### Prerequisite
|
27 |
To run this WebUI, you need to have `git`, `python` version 3.8 ~ 3.10, `CUDA` version above 12.0 and `FFmpeg`.
|
28 |
|
29 |
Please follow the links below to install the necessary software:
|
|
|
34 |
|
35 |
After installing FFmpeg, **make sure to add the `FFmpeg/bin` folder to your system PATH!**
|
36 |
|
37 |
+
### Automatic Installation
|
38 |
If you have satisfied the prerequisites listed above, you are now ready to start Whisper-WebUI.
|
39 |
|
40 |
1. Run `Install.bat` from Windows Explorer as a regular, non-administrator user. ( Run `install.sh` if you are using Mac )
|
|
|
45 |
|
46 |
And you can also run the project with command line arguments if you like by running `user-start-webui.bat`, see [wiki](https://github.com/jhj0517/Whisper-WebUI/wiki/Command-Line-Arguments) for a guide to arguments.
|
47 |
|
48 |
+
- ## Docker ( On Other OS )
|
49 |
|
50 |
+
1. Build the image
|
51 |
|
52 |
```sh
|
53 |
docker build -t whisper-webui:latest .
|
54 |
```
|
55 |
|
56 |
+
2. Run the container with commands
|
57 |
|
58 |
+
- For bash :
|
59 |
```sh
|
60 |
docker run --gpus all -d \
|
61 |
-v /path/to/models:/Whisper-WebUI/models \
|
62 |
-v /path/to/outputs:/Whisper-WebUI/outputs \
|
63 |
-p 7860:7860 \
|
64 |
+
-it \
|
65 |
+
whisper-webui:latest --server_name 0.0.0.0 --server_port 7860
|
66 |
+
```
|
67 |
+
- For PowerShell:
|
68 |
+
```shell
|
69 |
+
docker run --gpus all -d `
|
70 |
+
-v /path/to/models:/Whisper-WebUI/models `
|
71 |
+
-v /path/to/outputs:/Whisper-WebUI/outputs `
|
72 |
+
-p 7860:7860 `
|
73 |
+
-it `
|
74 |
whisper-webui:latest --server_name 0.0.0.0 --server_port 7860
|
75 |
```
|
76 |
|
start-webui.sh
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
|
3 |
-
source venv/bin/activate
|
4 |
-
|
5 |
-
PYTHON="venv/bin/python"
|
6 |
-
echo "venv ${PYTHON}"
|
7 |
-
echo ""
|
8 |
-
|
9 |
-
python app.py $*
|
10 |
-
|
11 |
-
deactivate
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|