Spaces:
Runtime error
Runtime error
Commit
·
26b4d6a
1
Parent(s):
db80382
Updated sequence of play() as return
Browse files
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
|
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 |
|