randmimc commited on
Commit
6a4310a
·
verified ·
1 Parent(s): 0277cbe

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -7
src/streamlit_app.py CHANGED
@@ -15,24 +15,23 @@ if "messages" not in st.session_state:
15
  st.subheader("데이터 선택")
16
 
17
  options = [
18
- "",
19
- "yes",
20
- "대한민국은 최근 AI 기술에 대한 관심이 급증하고 있다. 많은 기업이 AI 도입을 가속화하며 디지털 전환에 박차를 가하고 있다.",
21
- "오늘 열린 G7 정상회의에서는 글로벌 경제 회복과 기후 변화 대응을 위한 논의가 이어졌다.",
22
- "한국은행은 기준금리를 동결하면서도 물가 상승에 대한 우려를 나타냈다."
23
  ]
24
  selected_text = st.selectbox("데이터를 선택하세요", options)
 
25
 
26
  # 데이터 상태 및 조치 상황 표시 함수
27
  def display_status_and_action(text):
28
  if text == "":
29
  st.info("먼저 데이터를 선택해주세요.")
30
  elif text == "yes":
31
- st.success("✅ 데이터 상태: 승인됨")
32
  st.markdown("**조치 사항:** 추가 조치는 필요하지 않습니다.")
33
  else:
34
- st.warning("⚠️ 데이터 상태: 승인 대기 중")
35
  st.markdown("**조치 사항:** 아래 버튼을 눌러 승인 요청을 진행하세요.")
 
36
  if st.button("승인 요청"):
37
  st.session_state.approval_state = "requested"
38
  st.success("승인 요청이 제출되었습니다.")
 
15
  st.subheader("데이터 선택")
16
 
17
  options = [
18
+ "2024-08-24",
19
+ "2024-09-26"
 
 
 
20
  ]
21
  selected_text = st.selectbox("데이터를 선택하세요", options)
22
+ print(selected_text)
23
 
24
  # 데이터 상태 및 조치 상황 표시 함수
25
  def display_status_and_action(text):
26
  if text == "":
27
  st.info("먼저 데이터를 선택해주세요.")
28
  elif text == "yes":
29
+ st.success("✅ 차량 상태: 정상")
30
  st.markdown("**조치 사항:** 추가 조치는 필요하지 않습니다.")
31
  else:
32
+ st.warning("⚠️ 차량 상태: 조치 필요")
33
  st.markdown("**조치 사항:** 아래 버튼을 눌러 승인 요청을 진행하세요.")
34
+ st.markdown("엔진 과열임으로 엔진을 교체해주세요")
35
  if st.button("승인 요청"):
36
  st.session_state.approval_state = "requested"
37
  st.success("승인 요청이 제출되었습니다.")