soojeongcrystal commited on
Commit
d112adc
ยท
verified ยท
1 Parent(s): f005348

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -48,8 +48,8 @@ st.markdown('<div class="header">๐Ÿ† ๋‹ค๋ฅธ ํŒ€์žฅ ๊ณ ๋ฏผํ•ด๊ฒฐ ๋„์™€์ฃผ๊ธฐ
48
  st.markdown("""
49
  <div class="description-box">
50
  <p> How to use </br>
51
- 1. ์•„๋ž˜์—์„œ '์ €์—ฐ์ฐจ ํŒ€์žฅ', '์ค‘๊ฐ„์—ฐ์ฐจ ํŒ€์žฅ', '๊ณ ์—ฐ์ฐจ ํŒ€์žฅ' ์ค‘ ํ•˜๋‚˜์˜ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์กฐ์–ธ์„ ์ œ๊ณตํ•  ํŒ€์žฅ์˜ ์—ฐ์ฐจ๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š”. </br>
52
- 2. ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๋ฉด ์„ ํƒ๋œ ์—ฐ์ฐจ์˜ ๊ณ ๋ฏผ์ด ๋žœ๋ค์œผ๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. </br>
53
  3. ๊ณ ๋ฏผ ๋‚ด์šฉ ์•„๋ž˜์— ์œ„์น˜ํ•œ ํ…์ŠคํŠธ ์ž…๋ ฅ ์ฐฝ์— ์กฐ์–ธ์„ ์ž‘์„ฑํ•œ ํ›„, '์กฐ์–ธ ์ œ์ถœํ•˜๊ธฐ' ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”. </br>
54
  </p>
55
  </div>
@@ -83,7 +83,8 @@ for i, experience_level in enumerate(experience_levels):
83
  # ์„ ํƒ๋œ ๊ณ ๋ฏผ ๋‚ด์šฉ์„ ์ „์ฒด ํ™”๋ฉด์— ํ‘œ์‹œ
84
  if 'selected_concern' in st.session_state:
85
  st.markdown(f"### ์„ ํƒ๋œ ๊ณ ๋ฏผ:")
86
- st.text(st.session_state['selected_concern'])
 
87
 
88
  # ์กฐ์–ธ ์ œ์ถœ ์„น์…˜
89
  if 'selected_concern' in st.session_state and st.session_state.get('experience'):
 
48
  st.markdown("""
49
  <div class="description-box">
50
  <p> How to use </br>
51
+ 1. ์กฐ์–ธ์„ ํ•ด์ฃผ๊ณ  ์‹ถ์€ ํŒ€์žฅ ์—ฐ์ฐจ๋ฅผ ๊ณจ๋ผ์ฃผ์„ธ์š”. </br>
52
+ 2. ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๋ฉด ์„ ํƒ๋œ ์—ฐ์ฐจ์˜ ๊ณ ๋ฏผ ์ค‘ ํ•˜๋‚˜๊ฐ€ ๋žœ๋ค์œผ๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. </br>
53
  3. ๊ณ ๋ฏผ ๋‚ด์šฉ ์•„๋ž˜์— ์œ„์น˜ํ•œ ํ…์ŠคํŠธ ์ž…๋ ฅ ์ฐฝ์— ์กฐ์–ธ์„ ์ž‘์„ฑํ•œ ํ›„, '์กฐ์–ธ ์ œ์ถœํ•˜๊ธฐ' ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”. </br>
54
  </p>
55
  </div>
 
83
  # ์„ ํƒ๋œ ๊ณ ๋ฏผ ๋‚ด์šฉ์„ ์ „์ฒด ํ™”๋ฉด์— ํ‘œ์‹œ
84
  if 'selected_concern' in st.session_state:
85
  st.markdown(f"### ์„ ํƒ๋œ ๊ณ ๋ฏผ:")
86
+ # HTML๊ณผ CSS๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ž๋™ ์ค„๋ฐ”๊ฟˆ ๋ฐ ๋‚จ์ƒ‰ ์ ์šฉ
87
+ st.markdown(f"<div style='white-space: pre-wrap; word-wrap: break-word; color: navy;'>{st.session_state['selected_concern']}</div>", unsafe_allow_html=True)
88
 
89
  # ์กฐ์–ธ ์ œ์ถœ ์„น์…˜
90
  if 'selected_concern' in st.session_state and st.session_state.get('experience'):