Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def transcribe_audio(file_path):
|
|
15 |
# Open the wav file
|
16 |
try:
|
17 |
audio_file = open(file_path, 'rb')
|
18 |
-
response = openai.
|
19 |
model="whisper-1", # specify the appropriate model for transcription
|
20 |
file=audio_file,
|
21 |
language='ta' # specify 'ta' for Tamil language
|
|
|
15 |
# Open the wav file
|
16 |
try:
|
17 |
audio_file = open(file_path, 'rb')
|
18 |
+
response = openai.audio.transcriptions.create(
|
19 |
model="whisper-1", # specify the appropriate model for transcription
|
20 |
file=audio_file,
|
21 |
language='ta' # specify 'ta' for Tamil language
|