Spaces:
Sleeping
Sleeping
John Liao commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ except ImportError:
|
|
| 8 |
import openai # Import the library after installing it
|
| 9 |
|
| 10 |
def transcribe(filename,key):
|
| 11 |
-
client = OpenAI(api_key = key)
|
| 12 |
audio_file = open(filename, "rb")
|
| 13 |
transcript_srt = client.audio.transcriptions.create(
|
| 14 |
model="whisper-1",
|
|
|
|
| 8 |
import openai # Import the library after installing it
|
| 9 |
|
| 10 |
def transcribe(filename,key):
|
| 11 |
+
client = openai.OpenAI(api_key = key)
|
| 12 |
audio_file = open(filename, "rb")
|
| 13 |
transcript_srt = client.audio.transcriptions.create(
|
| 14 |
model="whisper-1",
|