Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ try:
|
|
32 |
except Exception:
|
33 |
st.write("Error loading cascade classifiers")
|
34 |
|
35 |
-
RTC_CONFIGURATION = RTCConfiguration({"iceServers": [{"urls": ["stun:stun.l.google.com:
|
36 |
|
37 |
class Faceemotion(VideoTransformerBase):
|
38 |
def transform(self, frame):
|
@@ -84,7 +84,7 @@ def main():
|
|
84 |
elif choice == "Webcam Face Detection":
|
85 |
st.header("Webcam Live Feed")
|
86 |
st.write("Click on start to use webcam and detect your face emotion")
|
87 |
-
webrtc_streamer(key="example", mode=WebRtcMode.
|
88 |
video_processor_factory=Faceemotion)
|
89 |
# st.video('https://www.youtube.com/watch?v=wyWmWaXapmI')
|
90 |
elif choice == "By Images":
|
|
|
32 |
except Exception:
|
33 |
st.write("Error loading cascade classifiers")
|
34 |
|
35 |
+
RTC_CONFIGURATION = RTCConfiguration({"iceServers": [{"urls": ["stun:stun.l.google.com:8502"]}]})
|
36 |
|
37 |
class Faceemotion(VideoTransformerBase):
|
38 |
def transform(self, frame):
|
|
|
84 |
elif choice == "Webcam Face Detection":
|
85 |
st.header("Webcam Live Feed")
|
86 |
st.write("Click on start to use webcam and detect your face emotion")
|
87 |
+
webrtc_streamer(key="example", mode=WebRtcMode.SENDRECV, rtc_configuration=RTC_CONFIGURATION, media_stream_constraints={"video": True, "audio": True},
|
88 |
video_processor_factory=Faceemotion)
|
89 |
# st.video('https://www.youtube.com/watch?v=wyWmWaXapmI')
|
90 |
elif choice == "By Images":
|