Spaces:
Runtime error
Runtime error
Commit
·
2d50f88
1
Parent(s):
ddd31a2
Update app.py
Browse files
app.py
CHANGED
@@ -58,10 +58,6 @@ def getTranscription(path):
|
|
58 |
|
59 |
return transcription[0]
|
60 |
|
61 |
-
def process_frame(frame):
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
def video_processing(video_file, encoded_video):
|
66 |
angry = 0
|
67 |
disgust = 0
|
@@ -126,7 +122,6 @@ def video_processing(video_file, encoded_video):
|
|
126 |
try:
|
127 |
emotion = DeepFace.analyze(color_image,actions=['emotion'],detector_backend = backends[2],enforce_detection = False)# 2,3, 4 works
|
128 |
emotion_count += 1
|
129 |
-
print(emotion)
|
130 |
except Exception as e:
|
131 |
emotion = 0
|
132 |
pass
|
|
|
58 |
|
59 |
return transcription[0]
|
60 |
|
|
|
|
|
|
|
|
|
61 |
def video_processing(video_file, encoded_video):
|
62 |
angry = 0
|
63 |
disgust = 0
|
|
|
122 |
try:
|
123 |
emotion = DeepFace.analyze(color_image,actions=['emotion'],detector_backend = backends[2],enforce_detection = False)# 2,3, 4 works
|
124 |
emotion_count += 1
|
|
|
125 |
except Exception as e:
|
126 |
emotion = 0
|
127 |
pass
|