BrainAI-1 commited on
Commit
9f50d9c
ยท
verified ยท
1 Parent(s): 672ead6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- st.session_state.random_class = object_detection.call_class()
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