Test changes to multiple files

- Added test note section to README
- Added "Hello world" comments to Python files
- Modified narrator.py with 3 test edits:
  - Changed wait time from 5 to 7 seconds
  - Updated "David is watching" message
  - Added comment to encode_image function

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Charlie Holtz 2025-07-06 11:07:13 -04:00
parent 1174275b5b
commit 1025a9a39f
3 changed files with 11 additions and 3 deletions

View File

@ -43,3 +43,6 @@ In another terminal, run the narrator:
python narrator.py 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 numpy as np
import os import os
# Hello world
# Folder # Folder
folder = "frames" folder = "frames"

View File

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