Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -68,9 +68,10 @@ for i in range(6):
|
|
68 |
|
69 |
# 데이터 처리 및 결과 출력
|
70 |
if st.button("생성"):
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
|
68 |
|
69 |
# 데이터 처리 및 결과 출력
|
70 |
if st.button("생성"):
|
71 |
+
with st.spinner('생성중...'):
|
72 |
+
input_data = "\n".join([st.session_state[f'record_{i}'] for i in range(6) if st.session_state[f'record_{i}']])
|
73 |
+
if uploaded_data is not None:
|
74 |
+
generated_record = generate_living_record(uploaded_data)
|
75 |
+
else:
|
76 |
+
generated_record = generate_living_record(input_data)
|
77 |
+
st.write("생성된 생활기록부:", generated_record)
|