Spaces:
Running
Running
Fix
#1
by
freddyaboulton
HF Staff
- opened
app.py
CHANGED
@@ -40,8 +40,6 @@ with gr.Blocks() as demo:
|
|
40 |
TEST
|
41 |
"""
|
42 |
)
|
43 |
-
|
44 |
-
test_state = gr.State()
|
45 |
with gr.Row():
|
46 |
with gr.Column():
|
47 |
audio = WebRTC(
|
@@ -63,15 +61,9 @@ with gr.Blocks() as demo:
|
|
63 |
|
64 |
audio.on_additional_outputs(
|
65 |
fn=handle_additional_outputs,
|
66 |
-
outputs=[
|
67 |
-
concurrency_limit=
|
68 |
queue=True, #False,
|
69 |
show_progress="hidden",
|
70 |
)
|
71 |
-
|
72 |
-
gr.on(test_state.change, inputs=[test_state, transcript], outputs=[transcript])
|
73 |
-
def state_change(test_state, transcript):
|
74 |
-
print(f"test_state: {test_state}")
|
75 |
-
return test_state + transcript
|
76 |
-
|
77 |
demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
|
|
40 |
TEST
|
41 |
"""
|
42 |
)
|
|
|
|
|
43 |
with gr.Row():
|
44 |
with gr.Column():
|
45 |
audio = WebRTC(
|
|
|
61 |
|
62 |
audio.on_additional_outputs(
|
63 |
fn=handle_additional_outputs,
|
64 |
+
outputs=[transcript],
|
65 |
+
concurrency_limit=10,
|
66 |
queue=True, #False,
|
67 |
show_progress="hidden",
|
68 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
|