Shubham09 commited on
Commit
3587687
·
1 Parent(s): 74a2d9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -45,8 +45,9 @@ def write_to_file(input_file):
45
  # return (' '.join([s.replace(s[0],s[0].capitalize(),1) for s in sentences]))
46
  pipe = pipeline(model="Shubham09/whisper31filescheck") # change to "your-username/the-name-you-picked"
47
 
48
- def asr_transcript():
49
- text = pipe("my_Audio_file.flac")["text"]
 
50
  return text
51
 
52
  # speech = load_data(input_file)
 
45
  # return (' '.join([s.replace(s[0],s[0].capitalize(),1) for s in sentences]))
46
  pipe = pipeline(model="Shubham09/whisper31filescheck") # change to "your-username/the-name-you-picked"
47
 
48
+ def asr_transcript(audio):
49
+ audio = "my_Audio_file.flac"
50
+ text = pipe(audio)["text"]
51
  return text
52
 
53
  # speech = load_data(input_file)