JUNGU commited on
Commit
75f1f3d
ยท
verified ยท
1 Parent(s): cb3a616

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -93,6 +93,13 @@ with col1:
93
  st.session_state[record_key] = str(data_value)
94
  elif record_key not in st.session_state:
95
  st.session_state[record_key] = ""
 
 
 
 
 
 
 
96
 
97
  # ์œ„์ ฏ ์ƒ์„ฑ
98
  for i in range(5):
 
93
  st.session_state[record_key] = str(data_value)
94
  elif record_key not in st.session_state:
95
  st.session_state[record_key] = ""
96
+
97
+ with st.expander(f"์ž…๋ ฅ์ฐฝ {i+1}", expanded=False):
98
+ user_input = st.text_area("์ƒํ™œ๊ธฐ๋ก๋ถ€ ๋‚ด์šฉ ์ž…๋ ฅ", key=record_key, height=150, value=st.session_state[record_key])
99
+ # ํ˜„์žฌ ์ž…๋ ฅ์ฐฝ์˜ ๋ฐ”์ดํŠธ ์ˆ˜ ๊ณ„์‚ฐ ๋ฐ ํ‘œ์‹œ
100
+ current_bytes = len(user_input.encode('utf-8'))
101
+ st.caption(f"ํ˜„์žฌ ์ž…๋ ฅ์ฐฝ ๋ฐ”์ดํŠธ ์ˆ˜: {current_bytes}")
102
+
103
 
104
  # ์œ„์ ฏ ์ƒ์„ฑ
105
  for i in range(5):