Spaces:
Runtime error
Runtime error
File size: 427 Bytes
8606e7e 8b97d54 431d59e 8b97d54 431d59e 8b97d54 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
def pass_audio(audio, test):
if test is not None:
print(len(test))
print(test[0])
print(len(test[1]))
print(test[1])
else:
print("test is None")
return audio, test
demo = gr.Interface(
pass_audio,
["state", gr.Audio(sources=["microphone"], streaming=True)],
["state", gr.Audio(streaming=True, autoplay=True)],
live=True,
)
demo.launch() |