Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def transcribeFile(audio_path : str) -> str:
|
|
| 15 |
|
| 16 |
def translateAudio(audio_path):
|
| 17 |
translationOutput = asr_pipe_whisper(audio_path, max_new_tokens=256, generate_kwargs={"task":"translate"})
|
| 18 |
-
return translationOutput
|
| 19 |
|
| 20 |
def transcribeFileMulti(inputlang, audio_path : str) -> str:
|
| 21 |
if inputlang == "English":
|
|
|
|
| 15 |
|
| 16 |
def translateAudio(audio_path):
|
| 17 |
translationOutput = asr_pipe_whisper(audio_path, max_new_tokens=256, generate_kwargs={"task":"translate"})
|
| 18 |
+
return translationOutput
|
| 19 |
|
| 20 |
def transcribeFileMulti(inputlang, audio_path : str) -> str:
|
| 21 |
if inputlang == "English":
|