Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,10 +48,16 @@ def respond(audio):
|
|
48 |
communicate.save(tmp_path)
|
49 |
return tmp_path
|
50 |
|
51 |
-
with gr.Blocks() as voice:
|
52 |
with gr.Row():
|
53 |
input = gr.Audio(label="Voice Chat", sources="microphone", type="filepath", waveform_options=False)
|
54 |
output = gr.Audio(label="CrucialCoach", type="filepath", interactive=False, autoplay=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
theme = gr.themes.Base()
|
57 |
|
|
|
48 |
communicate.save(tmp_path)
|
49 |
return tmp_path
|
50 |
|
51 |
+
with gr.Blocks() as voice:
|
52 |
with gr.Row():
|
53 |
input = gr.Audio(label="Voice Chat", sources="microphone", type="filepath", waveform_options=False)
|
54 |
output = gr.Audio(label="CrucialCoach", type="filepath", interactive=False, autoplay=True)
|
55 |
+
gr.Interface(
|
56 |
+
fn=respond,
|
57 |
+
inputs=[input],
|
58 |
+
outputs=[output],
|
59 |
+
live=True
|
60 |
+
)
|
61 |
|
62 |
theme = gr.themes.Base()
|
63 |
|