kwabs22 commited on
Commit
7a3e5e1
·
1 Parent(s): 402a694

audio function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,6 +14,6 @@ def dummyaudioprocess(aud):
14
  with gr.Blocks() as realtimemedia:
15
  gr.HTML("Dual Audio and Image and processing test - With inspiration from - https://huggingface.co/spaces/lampongyuen/Gradio-Webcam-Streaming/blob/main/app.py (I thought needed video instead of Image) <br> End goal is SAM on live webcam + audio live with whisper <br> Live interface seems not to work in colab so dont debug there" )
16
  gr.Interface(flip, gr.Image(sources=["webcam"], streaming=True), "image", live=True)
17
- gr.Interface(flip, gr.Audio(sources=["microphone"], streaming=True), "audio", live=True)
18
 
19
  realtimemedia.launch()
 
14
  with gr.Blocks() as realtimemedia:
15
  gr.HTML("Dual Audio and Image and processing test - With inspiration from - https://huggingface.co/spaces/lampongyuen/Gradio-Webcam-Streaming/blob/main/app.py (I thought needed video instead of Image) <br> End goal is SAM on live webcam + audio live with whisper <br> Live interface seems not to work in colab so dont debug there" )
16
  gr.Interface(flip, gr.Image(sources=["webcam"], streaming=True), "image", live=True)
17
+ gr.Interface(dummyaudioprocess, gr.Audio(sources=["microphone"], streaming=True), "audio", live=True)
18
 
19
  realtimemedia.launch()