Spaces:
Runtime error
Runtime error
maxinethegreat
commited on
Commit
·
fac68ca
1
Parent(s):
d647e93
testing input/out display and clean up code
Browse files
app.py
CHANGED
@@ -5,11 +5,6 @@ import cv2
|
|
5 |
import numpy as np
|
6 |
|
7 |
|
8 |
-
def greet(name):
|
9 |
-
return "Hello " + name + "!!"
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
# Load the saved model
|
14 |
model = tf.keras.models.load_model('model/cnn_9_layer_model.h5')
|
15 |
|
@@ -48,7 +43,7 @@ def predict_emotion(frame):
|
|
48 |
input_image = gr.inputs.Image(source = "webcam")
|
49 |
# image = gr.inputs.Video(source = "webcam" )
|
50 |
|
51 |
-
output_image = gr.inputs.Image(type = "numpy", label="Emotion Detection"
|
52 |
|
53 |
|
54 |
|
|
|
5 |
import numpy as np
|
6 |
|
7 |
|
|
|
|
|
|
|
|
|
|
|
8 |
# Load the saved model
|
9 |
model = tf.keras.models.load_model('model/cnn_9_layer_model.h5')
|
10 |
|
|
|
43 |
input_image = gr.inputs.Image(source = "webcam")
|
44 |
# image = gr.inputs.Video(source = "webcam" )
|
45 |
|
46 |
+
output_image = gr.inputs.Image(type = "numpy", label="Emotion Detection" )
|
47 |
|
48 |
|
49 |
|