Skip to content

Commit

Permalink
Minior updates
Browse files Browse the repository at this point in the history
  • Loading branch information
subdavis committed Sep 11, 2024
1 parent 8df6fa8 commit 86279db
Show file tree
Hide file tree
Showing 5 changed files with 7,714 additions and 7 deletions.
7,703 changes: 7,702 additions & 1 deletion archive/meeting_cache.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lims_utils/claude.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def generate_summary(meeting):
committeeName = meeting["committeeName"]
meetingTime = meeting["meetingTime"]
transcript_to_analyze, videoId = getTranscriptForMeeting(meeting)

if transcript_to_analyze is None:
return None, None, False

summary_filename = archivePath / "summary" / f"summary_{videoId}.md"
document = load_text(summary_filename)

Expand Down
1 change: 1 addition & 0 deletions lims_utils/meetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def update_meeting_cache(beginDateStr: Optional[str]) -> Tuple[list, list]:
print(
f"Skipping meeting without video: {meeting['committeeName']} - {meeting['meetingTime']}"
)
newMeetings.append(meeting)
else:
print(
f"Skipping future meeting: {meeting['committeeName']} - {meeting['meetingTime']}"
Expand Down
4 changes: 2 additions & 2 deletions lims_utils/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
First provide a structured header with the following information under the title "## Meeting Information":
- Date: The date of the meeting
- Title: The title of the meeting
- Present: Which council members were present
- Absent: Which council members were absent. Only include council members who are explicitly marked absent.
- Present: Which council members were present at the beginning of the meeting. Sometimes council members leave early (indicated by absent votes later in a session) but they are still considered present. You can include a note about early departures.
- Absent: Which council members were absent at the beginning. Only include council members who are explicitly marked absent.
- Guests: Which invited guests were present.
- Votes: The total number of votes that were taken, either by voice or roll call.
Expand Down
9 changes: 5 additions & 4 deletions lims_utils/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def generate():

for meeting in (cachedMeetings[:8]):
filename, text, isNewContent = generate_summary(meeting)
formatSummaryForHugo(meeting, text)
if isNewContent:
print(f"Summary for {meeting['committeeName']}::{meeting['meetingTime']} written to {filename}. Sleeping...")
sleep(120)
if text and filename:
formatSummaryForHugo(meeting, text)
if isNewContent:
print(f"Summary for {meeting['committeeName']}::{meeting['meetingTime']} written to {filename}. Sleeping...")
sleep(120)

0 comments on commit 86279db

Please sign in to comment.