Skip to content

Commit

Permalink
Remove from-git dependencies in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-plus committed Jul 6, 2023
1 parent f2380b2 commit a733bed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ into `.lrc` files in the desired language using [OpenAI-GPT](https://github.com/
2. Add your [OpenAI API key](https://platform.openai.com/account/api-keys) to environment variable `OPENAI_API_KEY`.

3. Install [PyTorch](https://pytorch.org/get-started/locally/):
```shell
```shell
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
```

4. Install [whisperx](https://github.com/m-bain/whisperX)

```shell
pip install git+https://github.com/m-bain/whisperx.git
```
4. Install [whisperx](https://github.com/m-bain/whisperX) and (Recommended) the
latest [fast-whisper](https://github.com/guillaumekln/faster-whisper)
```shell
pip install git+https://github.com/guillaumekln/faster-whisper
pip install git+https://github.com/m-bain/whisperx.git
```

5. (Optional) If you want to process videos, install [ffmpeg](https://ffmpeg.org/download.html) and add `bin` directory
to your `PATH`.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ include = [
[tool.poetry.dependencies]
python = "^3.8"
openai = "^0.27.6"
faster-whisper = { git = "https://github.com/guillaumekln/faster-whisper" }
tiktoken = "^0.3.1"
langcodes = "^3.3.0"
language-data = "^1.1"
Expand All @@ -52,7 +51,8 @@ filetype = "^1.2.0"
jaconvV2 = "^0.4"
spacy = "^3.5.4"
pysbd = "^0.3.4"
whisperx = { git = "https://github.com/m-bain/whisperx.git" }
faster-whisper = "^0.6.0"
#whisperx = { git = "https://github.com/m-bain/whisperx.git" }
#torch = { version = "2.0.1", source = "torch" }
#torchaudio = { version = "2.0.2", source = "torch" }
#torchvision = { version = "0.15.2", source = "torch" }
Expand Down

0 comments on commit a733bed

Please sign in to comment.