BrainAI-1 commited on
Commit
4b26728
ยท
verified ยท
1 Parent(s): 90ce9a3

Update app.py

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