vemas commited on
Commit
f305cf3
·
verified ·
1 Parent(s): 585d994

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ from filters import as_gray
4
+
5
+ def process(input_image):
6
+ output_image = as_gray(input_image)
7
+ return output_image
8
+
9
+ demo = gr.Interface(
10
+ process,
11
+ "image",
12
+ "image",
13
+ examples=["lion.jpg", "logo.png"],
14
+ )
15
+
16
+ demo.launch()