Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,15 +100,7 @@ with col1:
|
|
100 |
with st.expander(f"์
๋ ฅ์ฐฝ {i+1}", expanded=False):
|
101 |
st.text_area("์ํ๊ธฐ๋ก๋ถ ๋ด์ฉ ์
๋ ฅ", key=record_key, height=150, value=st.session_state[record_key])
|
102 |
|
103 |
-
|
104 |
-
if st.button("์์ฑ"):
|
105 |
-
with st.spinner('์์ฑ์ค...'):
|
106 |
-
input_data = "\n".join([st.session_state[f'record_{i}'] for i in range(5) if st.session_state[f'record_{i}']])
|
107 |
-
# ํค์๋๋ฅผ ์
๋ ฅ ๋ฐ์ดํฐ์ ์ถ๊ฐ
|
108 |
-
keyword_data = " ".join(selected_attitude + selected_relationship + selected_personality)
|
109 |
-
full_data = input_data + "\n" + keyword_data
|
110 |
-
generated_record = generate_living_record(full_data)
|
111 |
-
st.write("์์ฑ๋ ์ํ๊ธฐ๋ก๋ถ:", generated_record)
|
112 |
|
113 |
with col2:
|
114 |
# ํค์๋ ์ ํ ์ต์
|
@@ -117,3 +109,12 @@ with col2:
|
|
117 |
selected_relationship = st.multiselect("๊ต์ฐ๊ด๊ณ", relationship_keywords)
|
118 |
selected_personality = st.multiselect("์ฑ๊ฒฉ", personality_keywords)
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
with st.expander(f"์
๋ ฅ์ฐฝ {i+1}", expanded=False):
|
101 |
st.text_area("์ํ๊ธฐ๋ก๋ถ ๋ด์ฉ ์
๋ ฅ", key=record_key, height=150, value=st.session_state[record_key])
|
102 |
|
103 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
with col2:
|
106 |
# ํค์๋ ์ ํ ์ต์
|
|
|
109 |
selected_relationship = st.multiselect("๊ต์ฐ๊ด๊ณ", relationship_keywords)
|
110 |
selected_personality = st.multiselect("์ฑ๊ฒฉ", personality_keywords)
|
111 |
|
112 |
+
# ๋ฐ์ดํฐ ์ฒ๋ฆฌ ๋ฐ ๊ฒฐ๊ณผ ์ถ๋ ฅ
|
113 |
+
if st.button("์์ฑ"):
|
114 |
+
with st.spinner('์์ฑ์ค...'):
|
115 |
+
input_data = "\n".join([st.session_state[f'record_{i}'] for i in range(5) if st.session_state[f'record_{i}']])
|
116 |
+
# ํค์๋๋ฅผ ์
๋ ฅ ๋ฐ์ดํฐ์ ์ถ๊ฐ
|
117 |
+
keyword_data = " ".join(selected_attitude + selected_relationship + selected_personality)
|
118 |
+
full_data = input_data + "\n" + keyword_data
|
119 |
+
generated_record = generate_living_record(full_data)
|
120 |
+
st.write("์์ฑ๋ ์ํ๊ธฐ๋ก๋ถ:", generated_record)
|