d0a4adf 9fb2e7a d0a4adf
1
2
3
4
5
6
7
8
import gradio as gr def invert(img): return 255 - img iface = gr.Interface(fn=invert, inputs=gr.Image(type="numpy"), outputs=gr.Image()) iface.launch()