Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
3738456
1
Parent(s):
0cb2b20
Update app.py
Browse files
app.py
CHANGED
@@ -101,8 +101,8 @@ with gr.Blocks() as demo:
|
|
101 |
with gr.Column():
|
102 |
transcript = gr.Chatbot(label="transcript", type="messages")
|
103 |
|
104 |
-
audio.stream(ReplyOnPause(
|
105 |
-
audio.on_additional_outputs(
|
106 |
|
107 |
if __name__ == "__main__":
|
108 |
demo.launch()
|
|
|
101 |
with gr.Column():
|
102 |
transcript = gr.Chatbot(label="transcript", type="messages")
|
103 |
|
104 |
+
audio.stream(ReplyOnPause(transcribe), inputs=[audio, transformers_convo, transcript], outputs=[audio])
|
105 |
+
audio.on_additional_outputs(lambda s,a: (s,a), outputs=[transformers_convo, transcript])
|
106 |
|
107 |
if __name__ == "__main__":
|
108 |
demo.launch()
|