Downloads · 30 days
0
gabrielsanroman/demo3
demo3 is a machine learning model from gabrielsanroman. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Nov 17, 2022
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 83%
From the Hugging Face model README
import numpy as np
def sepia(image): sepia_filter = np.array( [[0.393, 0.769, 0.189], [0.349, 0.686, 0.168], [0.272, 0.534, 0.131]] ) sepia_img = image.dot(sepia_filter.T) sepia_img /= sepia_img.max() return sepia_img
import gradio as gr