Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,8 @@ def transcribe_audio(audio_path: str) -> str:
|
|
62 |
with open(audio_path, "rb") as audio_file:
|
63 |
transcript = client.audio.transcriptions.create(
|
64 |
model="whisper-1",
|
65 |
-
file=audio_file
|
66 |
-
response_format="text"
|
67 |
)
|
68 |
return transcript.text
|
69 |
except Exception as e:
|
|
|
62 |
with open(audio_path, "rb") as audio_file:
|
63 |
transcript = client.audio.transcriptions.create(
|
64 |
model="whisper-1",
|
65 |
+
file=audio_file
|
66 |
+
#response_format="text"
|
67 |
)
|
68 |
return transcript.text
|
69 |
except Exception as e:
|