Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def predict(url=None, translation="No",tran_lang="en"):
|
|
| 17 |
data = pytube.YouTube(file_path)
|
| 18 |
speech = data.streams.get_audio_only()
|
| 19 |
audio_file = speech.download()
|
| 20 |
-
audio_35 = whisper.load_audio(
|
| 21 |
|
| 22 |
audio = whisper.pad_or_trim(audio_35)
|
| 23 |
|
|
|
|
| 17 |
data = pytube.YouTube(file_path)
|
| 18 |
speech = data.streams.get_audio_only()
|
| 19 |
audio_file = speech.download()
|
| 20 |
+
audio_35 = whisper.load_audio(audio_file)
|
| 21 |
|
| 22 |
audio = whisper.pad_or_trim(audio_35)
|
| 23 |
|