Spaces:
Runtime error
Runtime error
import numpy as np | |
import gradio as gr | |
def quantize(val): | |
return (np.round(val / 255) * 255).astype(np.uint8) | |
def sepia(input_img): | |
output_img = list(map(quantize, input_img)) | |
return output_img | |
iface = gr.Interface(sepia, "image", "pil") | |
iface.launch() |