Spaces:
Sleeping
Sleeping
Commit
•
d30ec64
1
Parent(s):
676fa7b
Update whisper.py
Browse files- whisper.py +1 -0
whisper.py
CHANGED
@@ -12,6 +12,7 @@ def transcribe_audio():
|
|
12 |
from openai import OpenAI
|
13 |
import os
|
14 |
client = OpenAI(api_key=os.environ['openai_api_key'])
|
|
|
15 |
file = open(audio_stream.default_filename, "rb")
|
16 |
transcription = client.audio.transcriptions.create(model="whisper-1", file=file, response_format='text', language='ur')
|
17 |
|
|
|
12 |
from openai import OpenAI
|
13 |
import os
|
14 |
client = OpenAI(api_key=os.environ['openai_api_key'])
|
15 |
+
print(client)
|
16 |
file = open(audio_stream.default_filename, "rb")
|
17 |
transcription = client.audio.transcriptions.create(model="whisper-1", file=file, response_format='text', language='ur')
|
18 |
|