From cb18607867ded4071b768f622808b8cdae48f552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Wed, 15 Nov 2023 18:51:03 +0100 Subject: [PATCH 01/10] add missing dependencies to `requirements.txt` --- requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements.txt b/requirements.txt index 0c0a6aa..12cae1c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,6 +21,7 @@ openai==1.1.1 opencv-python==4.8.1.78 parso==0.8.3 pexpect==4.8.0 +Pillow==10.1.0 prompt-toolkit==3.0.41 ptyprocess==0.7.0 pure-eval==0.2.2 @@ -28,6 +29,7 @@ pydantic==2.4.2 pydantic_core==2.10.1 Pygments==2.16.1 requests==2.31.0 +simpleaudio==1.0.4 six==1.16.0 sniffio==1.3.0 stack-data==0.6.3 From 61e458e95b979b08d5d34bc5d04a1cf40c8a9140 Mon Sep 17 00:00:00 2001 From: Matt Mazur Date: Wed, 15 Nov 2023 13:46:10 -0500 Subject: [PATCH 02/10] Create frames folder if it doesn't exist --- capture.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/capture.py b/capture.py index c94dfa3..bc9845c 100644 --- a/capture.py +++ b/capture.py @@ -2,10 +2,15 @@ import cv2 import time from PIL import Image import numpy as np +import os # Folder folder = "frames" +# Create the frames folder if it doesn't exist +frames_dir = os.path.join(os.getcwd(), folder) +os.makedirs(frames_dir, exist_ok=True) + # Initialize the webcam cap = cv2.VideoCapture(0) From c75f298353b5428d5d181d44f50ff4a76f435601 Mon Sep 17 00:00:00 2001 From: Matt Mazur Date: Wed, 15 Nov 2023 13:53:39 -0500 Subject: [PATCH 03/10] Revert "Create frames folder if it doesn't exist" This reverts commit 61e458e95b979b08d5d34bc5d04a1cf40c8a9140. --- capture.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/capture.py b/capture.py index bc9845c..c94dfa3 100644 --- a/capture.py +++ b/capture.py @@ -2,15 +2,10 @@ import cv2 import time from PIL import Image import numpy as np -import os # Folder folder = "frames" -# Create the frames folder if it doesn't exist -frames_dir = os.path.join(os.getcwd(), folder) -os.makedirs(frames_dir, exist_ok=True) - # Initialize the webcam cap = cv2.VideoCapture(0) From f3c4337fc21567a19b895fec5e8bb6437dc7491e Mon Sep 17 00:00:00 2001 From: Matt Mazur Date: Wed, 15 Nov 2023 13:54:16 -0500 Subject: [PATCH 04/10] Create frames directory if it doesn't exist --- capture.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/capture.py b/capture.py index c94dfa3..bc9845c 100644 --- a/capture.py +++ b/capture.py @@ -2,10 +2,15 @@ import cv2 import time from PIL import Image import numpy as np +import os # Folder folder = "frames" +# Create the frames folder if it doesn't exist +frames_dir = os.path.join(os.getcwd(), folder) +os.makedirs(frames_dir, exist_ok=True) + # Initialize the webcam cap = cv2.VideoCapture(0) From 4bd6c87d5fe0842a6484725bf686dd276e669152 Mon Sep 17 00:00:00 2001 From: Rasmus Hjulskov Date: Wed, 15 Nov 2023 22:44:40 +0000 Subject: [PATCH 05/10] commit empty frames folder to save pictures --- .gitignore | 3 ++- frames/.gitkeep | 0 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 frames/.gitkeep diff --git a/.gitignore b/.gitignore index bff6c45..4d9cf0b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .env /venv -/frames /narration +/frames/* +!/frames/.gitkeep \ No newline at end of file diff --git a/frames/.gitkeep b/frames/.gitkeep new file mode 100644 index 0000000..e69de29 From 05344064f4ad0cb24f6174f2c7851a7cba2eba23 Mon Sep 17 00:00:00 2001 From: Charlie Holtz Date: Wed, 15 Nov 2023 17:45:03 -0500 Subject: [PATCH 06/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7cf488..4e15632 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ source venv/bin/activate Then, install the dependencies: `pip install -r requirements.txt` -Make an OpenAI and ElevenLabs (https://elevenlabs.io) account and set your tokens: +Make a [Replicate](https://replicate.com) OpenAI and ElevenLabs (https://elevenlabs.io) account and set your tokens: ``` export OPENAI_API_KEY= From f1e2b5324083beda7c0e9b70cfca36e601fc3bde Mon Sep 17 00:00:00 2001 From: Charlie Holtz Date: Wed, 15 Nov 2023 17:45:18 -0500 Subject: [PATCH 07/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e15632..943822e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ source venv/bin/activate Then, install the dependencies: `pip install -r requirements.txt` -Make a [Replicate](https://replicate.com) OpenAI and ElevenLabs (https://elevenlabs.io) account and set your tokens: +Make a [Replicate](https://replicate.com) OpenAI and [ElevenLabs](https://elevenlabs.io) account and set your tokens: ``` export OPENAI_API_KEY= From f82b760931b3756c089c788f7d8627ee9a4f0489 Mon Sep 17 00:00:00 2001 From: Charlie Holtz Date: Wed, 15 Nov 2023 21:23:50 -0500 Subject: [PATCH 08/10] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 943822e..9d87c3d 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ David Attenborough narrates your life. https://twitter.com/charliebholtz/status/1724815159590293764 +## Want to make your own AI app? +Check out [Replicate](https://replicate.com). We make it easy to run machine learning models with an API. + ## Setup Clone this repo, and setup and activate a virtualenv: @@ -16,7 +19,7 @@ source venv/bin/activate Then, install the dependencies: `pip install -r requirements.txt` -Make a [Replicate](https://replicate.com) OpenAI and [ElevenLabs](https://elevenlabs.io) account and set your tokens: +Make a [Replicate](https://replicate.com), OpenAI, and [ElevenLabs](https://elevenlabs.io) account and set your tokens: ``` export OPENAI_API_KEY= From 7bcbcca0e82244289762d1f793c4424413753a2f Mon Sep 17 00:00:00 2001 From: Charlie Holtz Date: Wed, 15 Nov 2023 21:45:42 -0500 Subject: [PATCH 09/10] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d87c3d..de5d70b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ -# narrator +# David Attenborough narrates your life. -David Attenborough narrates your life. https://twitter.com/charliebholtz/status/1724815159590293764 ## Want to make your own AI app? From dc3d70d8348b7f079963ce1db3d8db76630122c4 Mon Sep 17 00:00:00 2001 From: Charlie Holtz Date: Wed, 15 Nov 2023 21:46:37 -0500 Subject: [PATCH 10/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de5d70b..33f9b66 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ source venv/bin/activate Then, install the dependencies: `pip install -r requirements.txt` -Make a [Replicate](https://replicate.com), OpenAI, and [ElevenLabs](https://elevenlabs.io) account and set your tokens: +Make a [Replicate](https://replicate.com), [OpenAI](https://beta.openai.com/), and [ElevenLabs](https://elevenlabs.io) account and set your tokens: ``` export OPENAI_API_KEY=