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()