princeml commited on
Commit
afa5e1f
1 Parent(s): 5ceeebd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -87,6 +87,10 @@ def main():
87
  webrtc_streamer(key="example", mode=WebRtcMode.SENDONLY, 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 == "About":
92
  st.subheader("About this app")
 
87
  webrtc_streamer(key="example", mode=WebRtcMode.SENDONLY, 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":
91
+ img_file_buffer = st.sidebar.file_uploader("upload an image", type= ['jpg','png', 'jpeg'])
92
+ if img_file_buffer is not None:
93
+ img = np.array(Image.open(img_file_buffer))
94
 
95
  elif choice == "About":
96
  st.subheader("About this app")