Spaces:
Sleeping
Sleeping
# https://huggingface.co/spaces/lampongyuen/Gradio-Webcam-Streaming/blob/main/app.py (I thought needed video instead of Image) | |
import gradio as gr | |
import numpy as np | |
import time | |
def flip(im): | |
return np.flipud(im) | |
def dummyaudioprocess(aud): | |
time.sleep(3) | |
with gr.Blocks() as realtimemedia: | |
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 " ) | |
gr.Interface(flip, gr.Image(sources=["webcam"], streaming=True), "image", live=True) | |
gr.Interface(flip, gr.Audio(sources=["mixrophone"], streaming=True), "audio", live=True) | |
realtimemedia.launch() |