Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,7 @@ openai.api_key = os.environ["OPEN_AI_KEY"]
|
|
14 |
messages = [{"role": "system", "content": "You are a therapist. Respond in less than 5 sentences."}]
|
15 |
|
16 |
|
17 |
-
def transcribe(audio):
|
18 |
-
stringIn = test
|
19 |
-
|
20 |
audio_file = open(audio, "rb")
|
21 |
# Call the transcribe method with the file-like object
|
22 |
transcript = openai.Audio.transcribe("whisper-1", audio_file)
|
|
|
14 |
messages = [{"role": "system", "content": "You are a therapist. Respond in less than 5 sentences."}]
|
15 |
|
16 |
|
17 |
+
def transcribe(audio):
|
|
|
|
|
18 |
audio_file = open(audio, "rb")
|
19 |
# Call the transcribe method with the file-like object
|
20 |
transcript = openai.Audio.transcribe("whisper-1", audio_file)
|