Dinesh1102 commited on
Commit
e6e47af
·
1 Parent(s): b18a133

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -0
main.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from IPython.display import Audio, display
2
+ import whisper
3
+ display(Audio('audio.mp3', autoplay=True))
4
+ model = whisper.load_model('large')
5
+ pred = model.transcribe('audio.mp3')
6
+ print(pred['text'])