Watermark / app.py
xTaiwanPingLord's picture
Create app.py
489f370
raw
history blame contribute delete
No virus
263 Bytes
import numpy as np
import cv2
import gradio as gr
def watermark(input_image):
return cv2.cvtColor(cv2.imread(input_image), cv2.COLOR_BGR2RGB)
gr.Interface(fn=watermark,
inputs=gr.Image(type="filepath"),
outputs=gr.Image()).launch()