Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|
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
|
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 |
|