Skip to content

Commit

Permalink
removed unneeded prints, + vers bump
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarx committed Oct 6, 2022
1 parent 94a3c21 commit 45fb6f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.3
0.1.4
10 changes: 5 additions & 5 deletions vktrs/asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def whisper_segment_transcription(
end_prev=0
current_phrase = []
for rec in token_large_index_segmentations.values():
print(current_phrase)
print(start_prev, end_prev, rec)
#print(current_phrase)
#print(start_prev, end_prev, rec)
# we're in the same phrase as previous step
if rec['start'] == start_prev:
print("still in phrase")
#print("still in phrase")
current_phrase.append(rec['token'])
start_prev = rec['start']
end_prev = rec.get('end')
Expand All @@ -145,7 +145,7 @@ def whisper_segment_transcription(

# ...which starts immediately after the previous phrase
if rec['start'] == end_prev:
print("new starts where expected")
#print("new starts where expected")
current_phrase.append(rec['token'])
start_prev = rec['start']
end_prev = rec['end']
Expand All @@ -156,7 +156,7 @@ def whisper_segment_transcription(
else:
#raise NotImplementedError
# let's just do.. this? for now? I guess?
print("ruh roh")
#print("ruh roh")
current_phrase.append(rec['token'])
start_prev = rec['start']
end_prev = rec['end']
Expand Down

0 comments on commit 45fb6f9

Please sign in to comment.