Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import cv2
|
3 |
+
|
4 |
+
def process_image(img):
|
5 |
+
blur = cv2.blur(img,(5,5))
|
6 |
+
return blur
|
7 |
+
|
8 |
+
interface = gr.Interface(
|
9 |
+
fn = process_image,
|
10 |
+
#inputs='image',
|
11 |
+
inputs="webcam",
|
12 |
+
outputs='image',
|
13 |
+
title='Facial Expression',
|
14 |
+
description='Facial expression detection test')
|
15 |
+
|
16 |
+
interface.launch()
|