Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
import numpy as np
import gradio as gr
def snap(image):
return np.flipud(image)
demo = gr.Interface(snap, gr.Image(sources=["webcam"]), "image")
if __name__ == "__main__":
demo.launch()