Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,7 @@ 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 |
if source_radio == "IMAGE":
|
| 16 |
st.write(":green[์ผ์ชฝ ๋ฉ๋ด 'Browse files' ๋ฒํผ์ ํด๋ฆญํ์ฌ ์ด๋ฏธ์ง ํ์ผ์ ์ ํํ๋ฉด AI ์ถ๋ก ์ด ์์๋ฉ๋๋ค.]" )
|
|
@@ -42,7 +43,7 @@ elif source_radio == "VIDEO":
|
|
| 42 |
else:
|
| 43 |
st.video("data/breakfast.mp4")
|
| 44 |
|
| 45 |
-
|
| 46 |
elif source_radio == "GAME":
|
| 47 |
input_img = st.sidebar.file_uploader("์ด๋ฏธ์ง ํ์ผ์ ์ ํํ์ธ์.", type=("jpg", "png"))
|
| 48 |
if input_img is None:
|
|
|
|
| 11 |
st.title(":blue[Object Detection] :black_cat:")
|
| 12 |
st.sidebar.header("๋ฉ๋ด")
|
| 13 |
source_radio = st.sidebar.radio("์ ํํ์ธ์", ["IMAGE", "VIDEO", "GAME"])
|
| 14 |
+
st.session_state.random_class = object_detection.call_class()
|
| 15 |
|
| 16 |
if source_radio == "IMAGE":
|
| 17 |
st.write(":green[์ผ์ชฝ ๋ฉ๋ด 'Browse files' ๋ฒํผ์ ํด๋ฆญํ์ฌ ์ด๋ฏธ์ง ํ์ผ์ ์ ํํ๋ฉด AI ์ถ๋ก ์ด ์์๋ฉ๋๋ค.]" )
|
|
|
|
| 43 |
else:
|
| 44 |
st.video("data/breakfast.mp4")
|
| 45 |
|
| 46 |
+
|
| 47 |
elif source_radio == "GAME":
|
| 48 |
input_img = st.sidebar.file_uploader("์ด๋ฏธ์ง ํ์ผ์ ์ ํํ์ธ์.", type=("jpg", "png"))
|
| 49 |
if input_img is None:
|