cloud-platform-insights / autologger

📠 friction log bot
Apache License 2.0
0 stars 0 forks source link

Throw error if unable to process #7

Closed davidstanke closed 16 hours ago

davidstanke commented 2 weeks ago

I ran Autologger on a ~10 minute video and got empty output: there's nothing in the clips folder, and the .md file in out has no contents after ===============

I suspect the issue has something to do with Auth (doesn't it always?) -- see #5. Can we add some error checking to fail earlier and give the user feedback on what's wrong?

full output:

(venv) davidstanke-macbookpro3:src davidstanke$ python3 autologger.py 
INFO:root:
             _        _                             
            | |      | |                            
  __ _ _   _| |_ ___ | | ___   __ _  __ _  ___ _ __ 
 / _` | | | | __/ _ \| |/ _ \ / _` |/ _` |/ _ \ '__|
| (_| | |_| | || (_) | | (_) | (_| | (_| |  __/ |   
 \__,_|\__,_|\__\___/|_|\___/ \__, |\__, |\___|_|   
                               __/ | __/ |          
                              |___/ |___/           

INFO:root:
✅ Config loaded. 
topic: gcloud-tutorial
video path: ../input_videos/gcloud-tutorial.mp4
interval: 60
model: gemini-1.5-pro-preview-0514
system instructions: You are an automated Friction Log generator. Your job is to take a recording or transcript, and summarize the developer's journey on a specific task: each step, with the highs and lows (sentiment) of their experience. The topic is using the gcloud CLI.
gcp project id:cpets-stanke-sandbox
 gcs_bucket_name:autologger
🚧 Building your friction log, one video clip at a time: []
🚧 Building your friction log: []
INFO:root:Writing final friction log to local markdown...
INFO:root:🏁 Autologger complete. Output file at: out/gcloud-tutorial
davidstanke commented 2 weeks ago

In another case, I was able to get all the way through the video chunking (which takes a long time), and then it failed, because I hadn't saved a credentials.json (of course, RTFM, but still). Let's validate the auth early, and fail fast if it's missing.

davidstanke commented 2 weeks ago

Also see #12 -- @askmeegs I can work on these things together. LMK if you have feedback before I dive in.