Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ st.set_page_config(
|
|
| 11 |
st.title(":blue[Object Detection] :black_cat:")
|
| 12 |
st.sidebar.header("๋ฉ๋ด")
|
| 13 |
source_radio = st.sidebar.radio("์ ํํ์ธ์", ["IMAGE", "VIDEO", "GAME"])
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
if source_radio == "IMAGE":
|
| 17 |
st.write(":green[์ผ์ชฝ ๋ฉ๋ด 'Browse files' ๋ฒํผ์ ํด๋ฆญํ์ฌ ์ด๋ฏธ์ง ํ์ผ์ ์ ํํ๋ฉด AI ์ถ๋ก ์ด ์์๋ฉ๋๋ค.]" )
|
|
@@ -65,9 +66,6 @@ elif source_radio == "GAME":
|
|
| 65 |
st.header(f':{st.session_state.random_class}: ์ฐพ์ ์ ์์ต๋๋ค')
|
| 66 |
|
| 67 |
st.image(result_img)
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
|
| 72 |
|
| 73 |
|
|
|
|
| 11 |
st.title(":blue[Object Detection] :black_cat:")
|
| 12 |
st.sidebar.header("๋ฉ๋ด")
|
| 13 |
source_radio = st.sidebar.radio("์ ํํ์ธ์", ["IMAGE", "VIDEO", "GAME"])
|
| 14 |
+
if 'random_class' not in st.session_state:
|
| 15 |
+
st.session_state.random_class = object_detection.call_class()
|
| 16 |
|
| 17 |
if source_radio == "IMAGE":
|
| 18 |
st.write(":green[์ผ์ชฝ ๋ฉ๋ด 'Browse files' ๋ฒํผ์ ํด๋ฆญํ์ฌ ์ด๋ฏธ์ง ํ์ผ์ ์ ํํ๋ฉด AI ์ถ๋ก ์ด ์์๋ฉ๋๋ค.]" )
|
|
|
|
| 66 |
st.header(f':{st.session_state.random_class}: ์ฐพ์ ์ ์์ต๋๋ค')
|
| 67 |
|
| 68 |
st.image(result_img)
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
|