Update app.py
Browse files
app.py
CHANGED
|
@@ -11,10 +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 |
-
st.session_state.random_class = None
|
| 15 |
-
if not st.session_state.random_class:
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
|
| 20 |
if source_radio == "IMAGE":
|
|
@@ -51,6 +49,7 @@ elif source_radio == "GAME":
|
|
| 51 |
input_img = st.sidebar.file_uploader("์ด๋ฏธ์ง ํ์ผ์ ์ ํํ์ธ์.", type=("jpg", "png"))
|
| 52 |
col1, col2 = st.columns([3, 1]) # Adjust the column widths as needed
|
| 53 |
if input_img is None:
|
|
|
|
| 54 |
|
| 55 |
with col1:
|
| 56 |
st.title(f':{st.session_state.random_class}: ์๋ ์ด๋ฏธ์ง๋ฅผ ์
๋ก๋') # Display the header
|
|
|
|
| 11 |
st.title(":blue[Object Detection] :black_cat:")
|
| 12 |
st.sidebar.header("๋ฉ๋ด")
|
| 13 |
source_radio = st.sidebar.radio("์ ํํ์ธ์", ["IMAGE", "VIDEO", "GAME"])
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
|
| 16 |
|
| 17 |
|
| 18 |
if source_radio == "IMAGE":
|
|
|
|
| 49 |
input_img = st.sidebar.file_uploader("์ด๋ฏธ์ง ํ์ผ์ ์ ํํ์ธ์.", type=("jpg", "png"))
|
| 50 |
col1, col2 = st.columns([3, 1]) # Adjust the column widths as needed
|
| 51 |
if input_img is None:
|
| 52 |
+
st.session_state.random_class = object_detection.call_class()
|
| 53 |
|
| 54 |
with col1:
|
| 55 |
st.title(f':{st.session_state.random_class}: ์๋ ์ด๋ฏธ์ง๋ฅผ ์
๋ก๋') # Display the header
|