Can we set blocks with live (like interface)?
We can set the live parameter in interface:demo = gr.Interface(
    main_note,
    gr.Audio(source="microphone", streaming=True),
    gr.Text(),
    live=True
)How can we setlivewith blocks ?
2023-04-21T21:13:15Z
hi@laro1here is an example using a Camera, but you can replace with the Audioimport gradio as gr
import numpy as np

def flip(im):
    return np.flipud(im)

with gr.Blocks() as demo:
  with gr.Row():
      with gr.Column():
        camera = gr.Image(source="webcam")
      with gr.Column():
        image = gr.Image()
  camera.stream(fn=flip, inputs=[camera], outputs=[image])

demo.launch()