Skip to content

Commit

Permalink
Fix offsets flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanleary committed Apr 20, 2018
1 parent 4b0f7a9 commit 99fee14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def decode_results(model, decoded_output, decoded_offsets):
for pi in range(min(args.top_paths, len(decoded_output[b]))):
result = {'transcription': decoded_output[b][pi]}
if args.offsets:
result['offsets'] = decoded_offsets[b][pi]
result['offsets'] = decoded_offsets[b][pi].tolist()
results['output'].append(result)
return results

Expand Down

0 comments on commit 99fee14

Please sign in to comment.