Update app.py
Browse files
app.py
CHANGED
|
@@ -135,5 +135,13 @@ with st.sidebar:
|
|
| 135 |
|
| 136 |
generate_scenario_button = st.button("💕 시나리오 생성! 💕")
|
| 137 |
|
| 138 |
-
# 메인 영역 출력
|
| 139 |
-
scenario_output_area = st.empty()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
generate_scenario_button = st.button("💕 시나리오 생성! 💕")
|
| 137 |
|
| 138 |
+
# 메인 영역 출력 및 복사 기능 추가
|
| 139 |
+
scenario_output_area = st.empty()
|
| 140 |
+
|
| 141 |
+
if generate_scenario_button:
|
| 142 |
+
full_text = generate_date_scenario(my_name, my_gender, my_type, my_wing, my_instinct, partner_name, partner_gender, partner_type, partner_wing, partner_instinct, situation)
|
| 143 |
+
if full_text:
|
| 144 |
+
scenario_output_area.markdown(markdown.markdown(full_text), unsafe_allow_html=True)
|
| 145 |
+
if st.button("📋 텍스트 복사하기"): # 복사 버튼 추가
|
| 146 |
+
pyperclip.copy(full_text) # 텍스트 복사
|
| 147 |
+
st.success("텍스트가 클립보드에 복사되었습니다!")
|