Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def text_to_speech(text):
|
|
16 |
myobj.save("test.wav")
|
17 |
return 'test.wav'
|
18 |
|
19 |
-
|
20 |
|
21 |
def transcribe(audio):
|
22 |
text = p(audio)["text"]
|
@@ -90,9 +90,10 @@ inputs= [ gr.Audio(source="microphone", type="filepath"),
|
|
90 |
|
91 |
#outputs = gr.outputs.Textbox(label="Reply")
|
92 |
|
|
|
93 |
gr.Interface(fn= chatbot,
|
94 |
inputs= inputs,
|
95 |
-
outputs=
|
96 |
title="PepsiCo-chatbot",
|
97 |
description="Give your order",
|
98 |
theme="compact").launch()
|
|
|
16 |
myobj.save("test.wav")
|
17 |
return 'test.wav'
|
18 |
|
19 |
+
audio = test.wav
|
20 |
|
21 |
def transcribe(audio):
|
22 |
text = p(audio)["text"]
|
|
|
90 |
|
91 |
#outputs = gr.outputs.Textbox(label="Reply")
|
92 |
|
93 |
+
|
94 |
gr.Interface(fn= chatbot,
|
95 |
inputs= inputs,
|
96 |
+
outputs= audio,
|
97 |
title="PepsiCo-chatbot",
|
98 |
description="Give your order",
|
99 |
theme="compact").launch()
|