Remove unused import
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import collections
|
|
||||||
import itertools
|
import itertools
|
||||||
import os
|
import os
|
||||||
import zlib
|
import zlib
|
||||||
@@ -445,6 +444,7 @@ class WhisperModel:
|
|||||||
|
|
||||||
for temperature in options.temperatures:
|
for temperature in options.temperatures:
|
||||||
if temperature > 0:
|
if temperature > 0:
|
||||||
|
print(temperature)
|
||||||
kwargs = {
|
kwargs = {
|
||||||
"beam_size": 1,
|
"beam_size": 1,
|
||||||
"num_hypotheses": options.best_of,
|
"num_hypotheses": options.best_of,
|
||||||
@@ -472,6 +472,7 @@ class WhisperModel:
|
|||||||
)[0]
|
)[0]
|
||||||
|
|
||||||
tokens = result.sequences_ids[0]
|
tokens = result.sequences_ids[0]
|
||||||
|
print(tokens)
|
||||||
|
|
||||||
# Recover the average log prob from the returned score.
|
# Recover the average log prob from the returned score.
|
||||||
seq_len = len(tokens)
|
seq_len = len(tokens)
|
||||||
|
|||||||
Reference in New Issue
Block a user