Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,10 +87,17 @@ def main():
|
|
| 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 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
elif choice == "About":
|
| 96 |
st.subheader("About this app")
|
|
|
|
| 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 |
+
|
| 91 |
+
elif choice == "By Images"::
|
| 92 |
+
st.header("video Live Feed")
|
| 93 |
+
st.write("Click on start to use and detect your face emotion")
|
| 94 |
+
# webrtc_streamer(key="example", mode=WebRtcMode.SENDRECV, rtc_configuration=RTC_CONFIGURATION, media_stream_constraints={"video": True, "audio": True},
|
| 95 |
+
# video_processor_factory=Faceemotion)
|
| 96 |
+
st.video('https://www.youtube.com/watch?v=wyWmWaXapmI')
|
| 97 |
+
# elif choice == "By Images":
|
| 98 |
+
# img_file_buffer = st.sidebar.file_uploader("upload an image", type= ['jpg','png', 'jpeg'])
|
| 99 |
+
# if img_file_buffer is not None:
|
| 100 |
+
# img = np.array(Image.open(img_file_buffer))
|
| 101 |
|
| 102 |
elif choice == "About":
|
| 103 |
st.subheader("About this app")
|