andito's picture
andito HF Staff
update gradio
8b97d54
raw
history blame
427 Bytes
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()