Bagda commited on
Commit
6966e97
·
verified ·
1 Parent(s): 416cca2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,6 +1,5 @@
1
- import gradio as gr
2
- def full_pipeline(youtube_url):
3
- # steps here
4
- return "dubbed_video.mp4"
5
 
6
- gr.Interface(fn=full_pipeline, inputs="text", outputs="video").launch()
 
 
 
1
+ import whisper
 
 
 
2
 
3
+ model = whisper.load_model("base") # Or "small", "medium", "large"
4
+ result = model.transcribe("audio.wav")
5
+ english_text = result['text']