Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,8 @@ openai.api_key = os.environ["Openai_APIkey"]
|
|
| 46 |
# Transcribe function
|
| 47 |
def transcribe(audio_file):
|
| 48 |
print("Transcribing")
|
| 49 |
-
transcription = asr_model.transcribe(audio_file)["text"]
|
|
|
|
| 50 |
return transcription
|
| 51 |
|
| 52 |
def inference(audio, latest):
|
|
|
|
| 46 |
# Transcribe function
|
| 47 |
def transcribe(audio_file):
|
| 48 |
print("Transcribing")
|
| 49 |
+
# transcription = asr_model.transcribe(audio_file)["text"]
|
| 50 |
+
transcription = asr_model.transcribe(audio_file)
|
| 51 |
return transcription
|
| 52 |
|
| 53 |
def inference(audio, latest):
|