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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,7 +95,7 @@ with col1:
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}")
@@ -105,7 +105,7 @@ with col1:
105
  for i in range(5):
106
  record_key = f"record_{i}"
107
  with st.expander(f"์ž…๋ ฅ์ฐฝ {i+1}", expanded=False):
108
- st.text_area("์ƒํ™œ๊ธฐ๋ก๋ถ€ ๋‚ด์šฉ ์ž…๋ ฅ", key=record_key, height=150, value=st.session_state[record_key])
109
 
110
 
111
 
 
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.get(record_key, ""))
99
  # ํ˜„์žฌ ์ž…๋ ฅ์ฐฝ์˜ ๋ฐ”์ดํŠธ ์ˆ˜ ๊ณ„์‚ฐ ๋ฐ ํ‘œ์‹œ
100
  current_bytes = len(user_input.encode('utf-8'))
101
  st.caption(f"ํ˜„์žฌ ์ž…๋ ฅ์ฐฝ ๋ฐ”์ดํŠธ ์ˆ˜: {current_bytes}")
 
105
  for i in range(5):
106
  record_key = f"record_{i}"
107
  with st.expander(f"์ž…๋ ฅ์ฐฝ {i+1}", expanded=False):
108
+ st.text_area("์ƒํ™œ๊ธฐ๋ก๋ถ€ ๋‚ด์šฉ ์ž…๋ ฅ", key=record_key, height=150, value=st.session_state(record_key, ""))
109
 
110
 
111