lampongyuen commited on
Commit
15364a8
·
1 Parent(s): 7cf3cf0

Upload 4 files

Browse files
Files changed (4) hide show
  1. app.py +21 -0
  2. llama.jpg +0 -0
  3. packages.txt +1 -0
  4. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio
2
+ import cv2
3
+
4
+
5
+ def inference(img):
6
+ new_img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
7
+ return new_img
8
+ # blur = cv2.blur(img,(5,5))
9
+
10
+ # For information on Interfaces, head to https://gradio.app/docs/
11
+ # For user guides, head to https://gradio.app/guides/
12
+ # For Spaces usage, head to https://huggingface.co/docs/hub/spaces
13
+ iface = gradio.Interface(
14
+ fn=inference,
15
+ inputs='image',
16
+ outputs='image',
17
+ title='Change Image',
18
+ description='Interface!',
19
+ examples=["llama.jpg"])
20
+
21
+ iface.launch()
llama.jpg ADDED
packages.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ python3-opencv
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ opencv-python
2
+ jinja2