Skip to content

Commit 8606c0c

Browse files
authored
Merge pull request #27 from ajcwebdev/next
Add JSDoc Types
2 parents 6dee8a4 + e07f870 commit 8606c0c

29 files changed

+585
-294
lines changed

llama.Dockerfile renamed to .github/llama.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# llama.cpp/Dockerfile
1+
# .github/llama.cpp/Dockerfile
22

33
FROM --platform=linux/arm64 ubuntu:22.04 AS build
44

whisper.Dockerfile renamed to .github/whisper.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# whisper.cpp/Dockerfile
1+
# .github/whisper.cpp/Dockerfile
22

33
FROM --platform=linux/arm64 ubuntu:22.04 AS build
44

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Run the following commands to clone `whisper.cpp` and build the `base` model:
6767
git clone https://github.com/ggerganov/whisper.cpp.git && \
6868
bash ./whisper.cpp/models/download-ggml-model.sh base && \
6969
make -C whisper.cpp && \
70-
cp whisper.Dockerfile whisper.cpp/Dockerfile
70+
cp .github/whisper.Dockerfile whisper.cpp/Dockerfile
7171
```
7272

7373
> Replace `base` with `large-v2` for the largest model, `medium` for a middle sized model, or `tiny` for the smallest model.
@@ -77,7 +77,7 @@ git clone https://github.com/ggerganov/whisper.cpp.git && \
7777
```bash
7878
git clone https://github.com/ggerganov/llama.cpp && \
7979
make -C llama.cpp && \
80-
cp llama.Dockerfile llama.cpp/Dockerfile
80+
cp .github/llama.Dockerfile llama.cpp/Dockerfile
8181
```
8282

8383
## Run Autoshow Node Scripts
File renamed without changes.

docs/examples.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,14 @@ npm run as -- --playlist "https://www.youtube.com/playlist?list=PLCVnrVv4KhXMh4D
4747

4848
### Process Multiple Videos Specified in a URLs File
4949

50-
Run on an arbitrary list of URLs in `urls.md`.
50+
Run on an arbitrary list of URLs in `example-urls.md`.
5151

5252
```bash
53-
npm run as -- --urls "content/examples/urls.md"
53+
npm run as -- --urls "content/example-urls.md"
5454
```
5555

5656
### Process Single Audio or Video File
5757

58-
Download MP3 file for testing:
59-
60-
```bash
61-
curl -L https://ajc.pics/audio/fsjam-short.mp3 -o ./content/audio.mp3
62-
```
63-
6458
Run on `audio.mp3` on the `content` directory:
6559

6660
```bash
@@ -385,7 +379,7 @@ npm run as -- --video "https://www.youtube.com/watch?v=jKB0EltG9Jo" && \
385379
npm run as -- --playlist "https://www.youtube.com/playlist?list=PLCVnrVv4KhXMh4DQBigyvHSRTf2CSj129" && \
386380
mv content/2022-11-05-intro-to-teach-jenn-tech-prompt.md content/02---2022-11-05-intro-to-teach-jenn-tech-prompt.md && \
387381
mv content/2023-09-10-teach-jenn-tech-channel-trailer-prompt.md content/03---2023-09-10-teach-jenn-tech-channel-trailer-prompt.md && \
388-
npm run as -- --urls "content/urls.md" && \
382+
npm run as -- --urls "content/example-urls.md" && \
389383
mv content/2022-11-05-intro-to-teach-jenn-tech-prompt.md content/04---2022-11-05-intro-to-teach-jenn-tech-prompt.md && \
390384
mv content/2023-09-10-teach-jenn-tech-channel-trailer-prompt.md content/05---2023-09-10-teach-jenn-tech-channel-trailer-prompt.md && \
391385
npm run as -- --file "content/audio.mp3" && \
@@ -439,7 +433,7 @@ npm run as -- --video "https://www.youtube.com/watch?v=jKB0EltG9Jo" && \
439433
npm run as -- --playlist "https://www.youtube.com/playlist?list=PLCVnrVv4KhXMh4DQBigyvHSRTf2CSj129" --prompt titles --whisper tiny --llama && \
440434
mv content/2022-11-05-intro-to-teach-jenn-tech-llama-shownotes.md content/30---2022-11-05-intro-to-teach-jenn-tech-llama-shownotes.md && \
441435
mv content/2023-09-10-teach-jenn-tech-channel-trailer-llama-shownotes.md content/31---2023-09-10-teach-jenn-tech-channel-trailer-llama-shownotes.md && \
442-
npm run as -- --urls "content/urls.md" --prompt titles --whisper tiny --llama && \
436+
npm run as -- --urls "content/example-urls.md" --prompt titles --whisper tiny --llama && \
443437
mv content/2022-11-05-intro-to-teach-jenn-tech-llama-shownotes.md content/32---2022-11-05-intro-to-teach-jenn-tech-llama-shownotes.md && \
444438
mv content/2023-09-10-teach-jenn-tech-channel-trailer-llama-shownotes.md content/33---2023-09-10-teach-jenn-tech-channel-trailer-llama-shownotes.md && \
445439
npm run as -- --file "content/audio.mp3" --prompt titles --whisper tiny --llama && \
@@ -463,7 +457,7 @@ npm run as -- --video "https://www.youtube.com/watch?v=jKB0EltG9Jo" && \
463457
npm run as -- --playlist "https://www.youtube.com/playlist?list=PLCVnrVv4KhXMh4DQBigyvHSRTf2CSj129" && \
464458
mv content/2022-11-05-intro-to-teach-jenn-tech-prompt.md content/02---2022-11-05-intro-to-teach-jenn-tech-prompt.md && \
465459
mv content/2023-09-10-teach-jenn-tech-channel-trailer-prompt.md content/03---2023-09-10-teach-jenn-tech-channel-trailer-prompt.md && \
466-
npm run as -- --urls "content/urls.md" && \
460+
npm run as -- --urls "content/example-urls.md" && \
467461
mv content/2022-11-05-intro-to-teach-jenn-tech-prompt.md content/04---2022-11-05-intro-to-teach-jenn-tech-prompt.md && \
468462
mv content/2023-09-10-teach-jenn-tech-channel-trailer-prompt.md content/05---2023-09-10-teach-jenn-tech-channel-trailer-prompt.md && \
469463
npm run as -- --file "content/audio.mp3" && \
@@ -481,7 +475,7 @@ npm run as -- --video "https://www.youtube.com/watch?v=jKB0EltG9Jo" && \
481475
npm run as -- --playlist "https://www.youtube.com/playlist?list=PLCVnrVv4KhXMh4DQBigyvHSRTf2CSj129" --prompt titles --whisper tiny --llama && \
482476
mv content/2022-11-05-intro-to-teach-jenn-tech-llama-shownotes.md content/14---2022-11-05-intro-to-teach-jenn-tech-llama-shownotes.md && \
483477
mv content/2023-09-10-teach-jenn-tech-channel-trailer-llama-shownotes.md content/15---2023-09-10-teach-jenn-tech-channel-trailer-llama-shownotes.md && \
484-
npm run as -- --urls "content/urls.md" --prompt titles --whisper tiny --llama && \
478+
npm run as -- --urls "content/example-urls.md" --prompt titles --whisper tiny --llama && \
485479
mv content/2022-11-05-intro-to-teach-jenn-tech-llama-shownotes.md content/16---2022-11-05-intro-to-teach-jenn-tech-llama-shownotes.md && \
486480
mv content/2023-09-10-teach-jenn-tech-channel-trailer-llama-shownotes.md content/17---2023-09-10-teach-jenn-tech-channel-trailer-llama-shownotes.md && \
487481
npm run as -- --file "content/audio.mp3" --prompt titles --whisper tiny --llama && \
@@ -502,6 +496,9 @@ This can be a useful way of creating a single markdown file of the entire projec
502496

503497
```bash
504498
cat README.md >> LLM.md && \
499+
echo '\n\n```' >> LLM.md && \
500+
tree >> LLM.md && \
501+
echo '\n```' >> LLM.md && \
505502
echo '\n\n' >> LLM.md && \
506503
cat docs/examples.md >> LLM.md && \
507504
echo '\n## AutoShow CLI Entry Point' >> LLM.md && \
@@ -580,10 +577,10 @@ cat README.md >> LLM.md && \
580577
echo '\n```\n' >> LLM.md && \
581578
echo '## Docker Files\n' >> LLM.md && \
582579
echo '```Dockerfile' >> LLM.md && \
583-
cat whisper.Dockerfile >> LLM.md && \
580+
cat .github/whisper.Dockerfile >> LLM.md && \
584581
echo '\n```\n' >> LLM.md && \
585582
echo '```Dockerfile' >> LLM.md && \
586-
cat llama.Dockerfile >> LLM.md && \
583+
cat .github/llama.Dockerfile >> LLM.md && \
587584
echo '\n```\n' >> LLM.md && \
588585
echo '```Dockerfile' >> LLM.md && \
589586
cat Dockerfile >> LLM.md && \

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"scripts": {
2121
"autoshow": "node --env-file=.env --no-warnings src/autoshow.js",
2222
"as": "node --env-file=.env --no-warnings src/autoshow.js",
23-
"video": "node --env-file=.env --no-warnings src/autoshow.js --whisper large --video",
23+
"v": "node --env-file=.env --no-warnings src/autoshow.js --whisper large --video",
2424
"serve": "node --env-file=.env --no-warnings --watch server/index.js",
2525
"fetch": "node --env-file=.env --no-warnings server/fetch.js"
2626
},

0 commit comments

Comments
 (0)