DrishtiSharma commited on
Commit
523acf8
1 Parent(s): c120622

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ classifier = pipeline("text-classification", model = model_name2)
23
 
24
  #Defining a function for speech-to_text conversion
25
  def speech_to_text(input_file):
26
- speech = load_fix_data(input_file, sampling_rate)
27
  transcribed_text = asr(speech, chunk_length_s=15, stride_length_s=1)["text"]
28
  return transcribed_text
29
 
 
23
 
24
  #Defining a function for speech-to_text conversion
25
  def speech_to_text(input_file):
26
+ speech = load_and_fix_data(input_file, sampling_rate)
27
  transcribed_text = asr(speech, chunk_length_s=15, stride_length_s=1)["text"]
28
  return transcribed_text
29