Spaces:
Build error
Build error
Update app.py
Browse files45 unmodified lines4647484950515253545556575859606162636445 unmodified lineselif source_radio == "GAME":input_img = st.sidebar.file_uploader("์ด๋ฏธ์ง ํ์ผ์ ์ ํํ์ธ์.", type=("jpg", "png"))if input_img:result_img, detected_object = object_detection.process_image(input_img)detected_objects_list = detected_object.split(": ")[1].split(", ")if st.session_state.random_class in detected_objects_list:st.header(f':{st.session_state.random_class}: ์ฐพ์ต๋๋ค!')else:st.header(f':{st.session_state.random_class}: ์ฐพ์ ์ ์์ต๋๋ค')st.image(result_img)else:col1, col2 = st.columns([1, 4])with col1:if st.button('์๋ก์ด ๊ฐ์ฒด'):st.session_state.random_class = object_detection.call_class()45 unmodified lines464748495051525354555657585960616263646566676845 unmodified lineselif source_radio == "GAME":input_img = st.sidebar.file_uploader("์ด๋ฏธ์ง ํ์ผ์ ์ ํํ์ธ์.", type=("jpg", "png"))col1, col2 = st.columns([1, 4])if input_img:result_img, detected_object = object_detection.process_image(input_img)with col1:if st.button('์๋ก์ด ๊ฐ์ฒด'):st.session_state.random_class = object_detection.call_class()with col2:if st.session_state.random_class in detected_object:st.header(f':{st.session_state.random_class}: ์ฐพ์ต๋๋ค!')else:st.header(f':{st.session_state.random_class}: ์ฐพ์ ์ ์์ต๋๋ค')st.image(result_img)else:with col1:if st.button('์๋ก์ด ๊ฐ์ฒด'):st.session_state.random_class = object_detection.call_class()
app.py+12-8