moro23 commited on
Commit
fd3074f
1 Parent(s): 3eee1de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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