import gradio as gr | |
import numpy as np | |
def flip(im): | |
return np.flipud(im) | |
demo = gr.Interface(flip, gr.Image(source="webcam", streaming=True), "image", live=True) | |
if __name__ == "__main__": | |
demo.launch(server_name="0.0.0.0", server_port=8501) | |
import gradio as gr | |
import numpy as np | |
def flip(im): | |
return np.flipud(im) | |
demo = gr.Interface(flip, gr.Image(source="webcam", streaming=True), "image", live=True) | |
if __name__ == "__main__": | |
demo.launch(server_name="0.0.0.0", server_port=8501) | |