Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
8 |
|
9 |
def transcribe(audio):
|
10 |
with open(audio, "rb") as audio_file:
|
11 |
-
transcript = openai.Audio.transcribe(
|
12 |
return transcript["text"]
|
13 |
|
14 |
def generate_response(transcribed_text):
|
|
|
8 |
|
9 |
def transcribe(audio):
|
10 |
with open(audio, "rb") as audio_file:
|
11 |
+
transcript = openai.Audio.transcribe("whisper-1", audio_file)
|
12 |
return transcript["text"]
|
13 |
|
14 |
def generate_response(transcribed_text):
|