Skip to content

Commit

Permalink
Merge branch 'main' into more-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shun-liang committed Nov 1, 2024
2 parents 051e813 + 75587e8 commit 3c7615a
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-e2e-ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Install project
run: uv tool install .
- name: Transcribe video
run: yt2doc --segment-unchaptered --llm-model gemma2 --video https://podcasts.apple.com/gb/podcast/herbert-hoover/id899632430?i=1000470974850 -o output.md
run: yt2doc --segment-unchaptered --llm-model gemma2 --video https://podcasts.apple.com/gb/podcast/u-s-presidents-04-james-madison/id899632430?i=1000673126896 -o output.md
- name: Display output.md
run: cat output.md
- name: Check if the output has more than 2000 characters on Linux
run: test $(wc -c < output.md) -gt 2000
- name: Check number of sub headers is greater than 2
run: test $(grep -c "^##\s" output.md) -gt 2
- name: Check number of sub headers is greater or equal to 2
run: test $(grep -c "^##\s" output.md) -ge 2
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ yt2doc --video <video-url> --sat-model <sat-model>

List of available SaT models [here](https://github.com/segment-any-text/wtpsplit?tab=readme-ov-file#available-models).


### Ignore chapters from source

Sometimes, the chaptering of the video/audio at the source does not segment the content in the way you are happy about. You can ask yt2doc to ignore the source chaptering by

```
yt2doc --video <video-url> --ignore-chapters --segment-unchaptered --llm-model <model-name>
```

### Run in Docker

To run yt2doc in Docker, first pull the image from ghcr:
Expand Down
Loading

0 comments on commit 3c7615a

Please sign in to comment.