Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,8 @@ def record_text(audio_file,api_key):
|
|
14 |
audio_file = open(audio_file, "rb")
|
15 |
transcript = client.audio.transcriptions.create(
|
16 |
model="whisper-1",
|
17 |
-
file=audio_file
|
|
|
18 |
)
|
19 |
return transcript
|
20 |
|
|
|
14 |
audio_file = open(audio_file, "rb")
|
15 |
transcript = client.audio.transcriptions.create(
|
16 |
model="whisper-1",
|
17 |
+
file=audio_file,
|
18 |
+
response_format="text"
|
19 |
)
|
20 |
return transcript
|
21 |
|