This commit is contained in:
Charlie Holtz 2025-07-06 11:07:28 -04:00 committed by GitHub
commit fca5a924d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 3 deletions

View File

@ -43,3 +43,6 @@ In another terminal, run the narrator:
python narrator.py
```
## Test Note
This is a test change to the README file.

View File

@ -4,6 +4,8 @@ from PIL import Image
import numpy as np
import os
# Hello world
# Folder
folder = "frames"

View File

@ -7,11 +7,14 @@ import simpleaudio as sa
import errno
from elevenlabs import generate, play, set_api_key, voices
# Hello world
client = OpenAI()
set_api_key(os.environ.get("ELEVENLABS_API_KEY"))
def encode_image(image_path):
# TEST EDIT 3: Added comment
while True:
try:
with open(image_path, "rb") as image_file:
@ -84,7 +87,7 @@ def main():
base64_image = encode_image(image_path)
# analyze posture
print("👀 David is watching...")
print("👀 David is watching closely...") # TEST EDIT 2
analysis = analyze_image(base64_image, script=script)
print("🎙️ David says:")
@ -94,8 +97,8 @@ def main():
script = script + [{"role": "assistant", "content": analysis}]
# wait for 5 seconds
time.sleep(5)
# wait for 7 seconds - TEST EDIT 1
time.sleep(7)
if __name__ == "__main__":