Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HHousen committed Jul 28, 2023
1 parent b8474e5 commit 8ec6482
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lecture2notes/end_to_end/summarization_approaches.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import logging
import math
from collections import OrderedDict, defaultdict, namedtuple
from collections import OrderedDict, namedtuple
from functools import partial
from operator import attrgetter
from time import time, sleep
Expand Down Expand Up @@ -963,7 +963,7 @@ def structured_joined_sum(
transcript_before_slides = transcript_before_slides.strip()
final_dict = OrderedDict({"Preface": {"transcript": transcript_before_slides}})

all_titles = defaultdict(int)
all_titles = {}
no_conclusion = False
for idx, slide in tqdm(
enumerate(ssa), total=len(ssa), desc="Grouping Slides and Transcript"
Expand Down Expand Up @@ -1018,7 +1018,7 @@ def structured_joined_sum(
all_titles[title] += 1
title = f"{title} ({all_titles[title]})"
else:
all_titles.add(title)
all_titles[title] = 0

current_slide_timestamp_seconds = ssa[idx]["frame_number"] * frame_every_x

Expand Down

0 comments on commit 8ec6482

Please sign in to comment.