brainai-spaces commited on
Commit
c460043
ยท
verified ยท
1 Parent(s): 77c2e7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -34,8 +34,9 @@ if source_radio == "IMAGE":
34
  st.image(result_image, channels = "RGB")
35
  st.markdown(f"<h4 style='color: blue;'><strong>์ด๋ฏธ์ง€์—์„œ AI ์ถ”๋ก ์„ ์‹คํ–‰ํ•œ ๊ฒฐ๊ณผ ์ž…๋‹ˆ๋‹ค.</strong></h4>", unsafe_allow_html=True)
36
  else:
37
- st.image("data/intel_rnb.jpg")
38
  st.write("์™ผ์ชฝ ๋ฉ”๋‰ด 'Browse Files' ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์ด๋ฏธ์ง€ ํŒŒ์ผ์„ ์„ ํƒํ•˜๋ฉด AI ์ถ”๋ก ์ด ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค." )
 
 
39
 
40
  def play_video(video_source):
41
  camera = cv2.VideoCapture(video_source)
@@ -85,8 +86,8 @@ if source_radio == "VIDEO":
85
  if temporary_location is not None:
86
  play_video(temporary_location)
87
  else:
88
- st.video("data/sample_video.mp4")
89
  st.write("์™ผ์ชฝ ๋ฉ”๋‰ด 'Browse Files' ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์˜์ƒ ํŒŒ์ผ์„ ์„ ํƒํ•˜๋ฉด AI ์ถ”๋ก ์ด ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค.")
 
90
 
91
  if source_radio == "WEBCAM":
92
  input = camera_input_live()
 
34
  st.image(result_image, channels = "RGB")
35
  st.markdown(f"<h4 style='color: blue;'><strong>์ด๋ฏธ์ง€์—์„œ AI ์ถ”๋ก ์„ ์‹คํ–‰ํ•œ ๊ฒฐ๊ณผ ์ž…๋‹ˆ๋‹ค.</strong></h4>", unsafe_allow_html=True)
36
  else:
 
37
  st.write("์™ผ์ชฝ ๋ฉ”๋‰ด 'Browse Files' ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์ด๋ฏธ์ง€ ํŒŒ์ผ์„ ์„ ํƒํ•˜๋ฉด AI ์ถ”๋ก ์ด ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค." )
38
+ st.image("data/intel_rnb.jpg")
39
+
40
 
41
  def play_video(video_source):
42
  camera = cv2.VideoCapture(video_source)
 
86
  if temporary_location is not None:
87
  play_video(temporary_location)
88
  else:
 
89
  st.write("์™ผ์ชฝ ๋ฉ”๋‰ด 'Browse Files' ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์˜์ƒ ํŒŒ์ผ์„ ์„ ํƒํ•˜๋ฉด AI ์ถ”๋ก ์ด ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค.")
90
+ st.video("data/sample_video.mp4")
91
 
92
  if source_radio == "WEBCAM":
93
  input = camera_input_live()