Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def transcribe(audio, text):
|
|
| 32 |
# Transcribe the audio if provided
|
| 33 |
if audio is not None:
|
| 34 |
audio_file = open(audio, "rb")
|
| 35 |
-
transcript =
|
| 36 |
|
| 37 |
# Tokenize the text input
|
| 38 |
if text is not None:
|
|
|
|
| 32 |
# Transcribe the audio if provided
|
| 33 |
if audio is not None:
|
| 34 |
audio_file = open(audio, "rb")
|
| 35 |
+
transcript = whisper.Audio.transcribe("whisper-1", audio_file, language="en")
|
| 36 |
|
| 37 |
# Tokenize the text input
|
| 38 |
if text is not None:
|