Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def asr_transcript(input_file):
|
|
35 |
|
36 |
speech = load_data(input_file)
|
37 |
#Tokenize
|
38 |
-
input_dict = tokenizer(speech, return_tensors="pt", padding=True)
|
39 |
#Take logits
|
40 |
logits = model(input_dict.input_values).logits
|
41 |
|
|
|
35 |
|
36 |
speech = load_data(input_file)
|
37 |
#Tokenize
|
38 |
+
input_dict = tokenizer(speech, return_tensors="pt", sampling_rate=1600, padding=True)
|
39 |
#Take logits
|
40 |
logits = model(input_dict.input_values).logits
|
41 |
|