finaspirant commited on
Commit
26b4d6a
·
1 Parent(s): db80382

Updated sequence of play() as return

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,8 +18,8 @@ def process(filepath):
18
  transcript = openai.Audio.transcribe("whisper-1",audio)
19
  llm = OpenAI(temperature=1)
20
  print(llm(transcript["text"]))
21
- play(interface.speak(llm(transcript["text"])))
22
- return llm(transcript["text"])
23
 
24
  #outputs = gr.Audio(label="Output")
25
 
 
18
  transcript = openai.Audio.transcribe("whisper-1",audio)
19
  llm = OpenAI(temperature=1)
20
  print(llm(transcript["text"]))
21
+ #play(interface.speak(llm(transcript["text"])))
22
+ return play(interface.speak(llm(transcript["text"]))) #llm(transcript["text"])
23
 
24
  #outputs = gr.Audio(label="Output")
25