RemovedorFundo / app.py
gaviego's picture
experiment with b&w
d25fd03
raw
history blame
No virus
240 Bytes
import gradio as gr
from PIL import Image
def bw(image_file:Image):
img = Image.open(image_file)
img = img.convert("L")
return img
iface = gr.Interface(fn=bw, inputs=gr.Image(type='filepath'), outputs=["image"])
iface.launch()