Update app.py
Browse files
app.py
CHANGED
|
@@ -116,6 +116,8 @@ with st.sidebar.expander("์
๋ ฅ ์ค์ ", expanded=True):
|
|
| 116 |
generate_button = st.button("๊ฐ๋
๊ธฐ๋ฐ ๊ต์ก๊ณผ์ ์์ฑ")
|
| 117 |
|
| 118 |
# ๋จ์ผ ์ถ๋ ฅ ์์ญ์ ์ ์งํ๊ณ , ํ์ํ ๊ฒฝ์ฐ์๋ง ๊ฐฑ์
|
|
|
|
|
|
|
| 119 |
if generate_button and achievement_standard:
|
| 120 |
result = generate_curriculum(grade, achievement_standard)
|
| 121 |
st.session_state.generated_curriculum = result
|
|
@@ -124,4 +126,4 @@ elif generate_button and not achievement_standard:
|
|
| 124 |
|
| 125 |
# ์ด๋ฏธ ์์ฑ๋ ๊ต์ก๊ณผ์ ์ด ์์ ๊ฒฝ์ฐ ์ด๋ฅผ ์ถ๋ ฅ
|
| 126 |
if "generated_curriculum" in st.session_state and st.session_state.generated_curriculum:
|
| 127 |
-
output_area.text_area("๊ฐ๋
๊ธฐ๋ฐ
|
|
|
|
| 116 |
generate_button = st.button("๊ฐ๋
๊ธฐ๋ฐ ๊ต์ก๊ณผ์ ์์ฑ")
|
| 117 |
|
| 118 |
# ๋จ์ผ ์ถ๋ ฅ ์์ญ์ ์ ์งํ๊ณ , ํ์ํ ๊ฒฝ์ฐ์๋ง ๊ฐฑ์
|
| 119 |
+
output_area = st.empty() # ์ถ๋ ฅ ์์ญ์ ํจ์ ๋ฐ์ผ๋ก ์ด๋ํ์ฌ ์ ์ญ์ผ๋ก ์ ์
|
| 120 |
+
|
| 121 |
if generate_button and achievement_standard:
|
| 122 |
result = generate_curriculum(grade, achievement_standard)
|
| 123 |
st.session_state.generated_curriculum = result
|
|
|
|
| 126 |
|
| 127 |
# ์ด๋ฏธ ์์ฑ๋ ๊ต์ก๊ณผ์ ์ด ์์ ๊ฒฝ์ฐ ์ด๋ฅผ ์ถ๋ ฅ
|
| 128 |
if "generated_curriculum" in st.session_state and st.session_state.generated_curriculum:
|
| 129 |
+
output_area.text_area("๊ฐ๋
๊ธฐ๋ฐ ํ๊ตฌํ์ต", value=st.session_state.generated_curriculum, height=600)
|