hwberry2 commited on
Commit
5ea2a93
·
1 Parent(s): d53d997

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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)