dav2 / app.py
Vanyadoing's picture
Update app.py
9fb2e7a verified
raw
history blame
158 Bytes
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()