osanseviero commited on
Commit
4a8795e
1 Parent(s): 036d419

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio
2
+ import cv2
3
+
4
+
5
+ def inference(img):
6
+ blur = cv2.blur(img,(5,5))
7
+ return blur
8
+
9
+ # For information on Interfaces, head to https://gradio.app/docs/
10
+ # For user guides, head to https://gradio.app/guides/
11
+ # For Spaces usage, head to https://huggingface.co/docs/hub/spaces
12
+ iface = gradio.Interface(
13
+ fn=inference,
14
+ inputs='image',
15
+ outputs='image',
16
+ title='Hello World',
17
+ description='The simplest interface!')
18
+
19
+ iface.launch()