diff --git a/app.py b/app.py index 0c8f2c3..4c7e609 100644 --- a/app.py +++ b/app.py @@ -24,33 +24,6 @@ #else: #show_explore_page() - - -# # 1.creating a video object -# video = cv2.VideoCapture(0) -# # 2. Variable -# a = 0 -# # 3. While loop -# while True: -# a = a + 1 -# # 4.Create a frame object -# check, frame = video.read() -# # Converting to grayscale -# # gray = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) -# # 5.show the frame! -# cv2.imshow("Capturing",frame) -# # 6.for playing -# key = cv2.waitKey(1) -# if key == ord('q'): -# break -# # 7. image saving -# showPic = cv2.imwrite("photo.jpg",frame) -# print(showPic) -# # 8. shutdown the camera -# video.release() -# cv2.destroyAllWindows() - - with pred: st.title("Prediction") img = cv2.imread('photo.jpg') @@ -62,3 +35,9 @@ st.text("Your emotion is {}".format(predictions['dominant_emotion'])) + if(predictions['dominant_emotion'] == 'happy'): + my_html = '' + + st.markdown(my_html, unsafe_allow_html=True) + + \ No newline at end of file