Update app.py
Browse files
app.py
CHANGED
|
@@ -62,10 +62,10 @@ elif source_radio == "GAME":
|
|
| 62 |
input_img = st.sidebar.file_uploader("์ด๋ฏธ์ง ํ์ผ์ ์ ํํ์ธ์.", type=("jpg", "png"))
|
| 63 |
if input_img:
|
| 64 |
result_img, detected_object = object_detection.process_image(input_img)
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
|
| 70 |
st.image(result_img)
|
| 71 |
|
|
|
|
| 62 |
input_img = st.sidebar.file_uploader("์ด๋ฏธ์ง ํ์ผ์ ์ ํํ์ธ์.", type=("jpg", "png"))
|
| 63 |
if input_img:
|
| 64 |
result_img, detected_object = object_detection.process_image(input_img)
|
| 65 |
+
if st.session_state.random_class in detected_object:
|
| 66 |
+
st.title(f':{st.session_state.random_class}: ์ฐพ์ต๋๋ค!')
|
| 67 |
+
else:
|
| 68 |
+
st.title(f':{st.session_state.random_class}: ์ฐพ์ ์ ์์ต๋๋ค')
|
| 69 |
|
| 70 |
st.image(result_img)
|
| 71 |
|