xTaiwanPingLord commited on
Commit
489f370
1 Parent(s): 763a3eb

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import cv2
3
+ import gradio as gr
4
+
5
+
6
+ def watermark(input_image):
7
+ return cv2.cvtColor(cv2.imread(input_image), cv2.COLOR_BGR2RGB)
8
+
9
+ gr.Interface(fn=watermark,
10
+ inputs=gr.Image(type="filepath"),
11
+ outputs=gr.Image()).launch()