File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1236,14 +1236,14 @@ def tokenize(self, x):
1236
1236
1237
1237
def get_masked_inputs (self , tokens , binary_mask_matrix ):
1238
1238
# create a "zero input" vector and get sample rate
1239
- x = tokens [0 ]
1239
+ x = tokens [0 ][ "data" ]
1240
1240
file_obj = processing_utils .decode_base64_to_file (x )
1241
1241
sample_rate , data = processing_utils .audio_from_file (file_obj .name )
1242
1242
zero_input = np .zeros_like (data , dtype = 'int16' )
1243
1243
# decode all of the tokens
1244
1244
token_data = []
1245
1245
for token in tokens :
1246
- file_obj = processing_utils .decode_base64_to_file (token )
1246
+ file_obj = processing_utils .decode_base64_to_file (token [ "data" ] )
1247
1247
_ , data = processing_utils .audio_from_file (file_obj .name )
1248
1248
token_data .append (data )
1249
1249
# construct the masked version
You can’t perform that action at this time.
0 commit comments