Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,11 +86,13 @@ if 'selected_concern' in st.session_state:
|
|
| 86 |
st.markdown(f"### 선택된 고민:")
|
| 87 |
# HTML과 CSS를 사용하여 자동 줄바꿈 및 남색 적용
|
| 88 |
st.markdown(f"<div style='white-space: pre-wrap; word-wrap: break-word; color: navy;'>{st.session_state['selected_concern']}</div>", unsafe_allow_html=True)
|
| 89 |
-
|
|
|
|
|
|
|
| 90 |
# 조언 제출 섹션
|
| 91 |
if 'selected_concern' in st.session_state:
|
| 92 |
-
advice = st.text_area(f"### 고민에 대한 조언을 입력해주세요:", key="advice_input", value="",height=100)
|
| 93 |
-
submit_advice_button = st.button("조언 제출하기")
|
| 94 |
|
| 95 |
if submit_advice_button and advice.strip():
|
| 96 |
record_advice(st.session_state['experience'], st.session_state['selected_concern'], advice)
|
|
|
|
| 86 |
st.markdown(f"### 선택된 고민:")
|
| 87 |
# HTML과 CSS를 사용하여 자동 줄바꿈 및 남색 적용
|
| 88 |
st.markdown(f"<div style='white-space: pre-wrap; word-wrap: break-word; color: navy;'>{st.session_state['selected_concern']}</div>", unsafe_allow_html=True)
|
| 89 |
+
# 고민과 조언 요청 사이에 공간 추가
|
| 90 |
+
st.write("")
|
| 91 |
+
|
| 92 |
# 조언 제출 섹션
|
| 93 |
if 'selected_concern' in st.session_state:
|
| 94 |
+
advice = st.text_area(f"### 고민에 대한 조언을 입력해주세요:", key="advice_input", value="", height=100) # text_area의 높이를 조정합니다.
|
| 95 |
+
submit_advice_button = st.button("조언 제출하기", style={"font-size": "18px"}) # 버튼의 글자 크기를 조정합니다.
|
| 96 |
|
| 97 |
if submit_advice_button and advice.strip():
|
| 98 |
record_advice(st.session_state['experience'], st.session_state['selected_concern'], advice)
|