Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -332,13 +332,13 @@ def create_interface():
|
|
332 |
|
333 |
birth_date = gr.Textbox(
|
334 |
label="생년월일",
|
335 |
-
placeholder="
|
336 |
info="8자리 숫자 또는 구분자 포함하여 입력"
|
337 |
)
|
338 |
|
339 |
birth_time = gr.Textbox(
|
340 |
label="태어난 시간 (선택사항)",
|
341 |
-
placeholder="
|
342 |
info="4자리 숫자 또는 구분자 포함하여 입력. 비우면 정오로 설정"
|
343 |
)
|
344 |
|
@@ -350,7 +350,7 @@ def create_interface():
|
|
350 |
|
351 |
birth_place = gr.Textbox(
|
352 |
label="출생지",
|
353 |
-
placeholder="
|
354 |
info="시/도 단위로 입력해주세요"
|
355 |
)
|
356 |
|
@@ -362,7 +362,8 @@ def create_interface():
|
|
362 |
with gr.Row():
|
363 |
with gr.Column():
|
364 |
result_output = gr.Markdown(
|
365 |
-
label="분석 결과"
|
|
|
366 |
)
|
367 |
|
368 |
# 이벤트 연결
|
@@ -372,11 +373,7 @@ def create_interface():
|
|
372 |
outputs=result_output
|
373 |
)
|
374 |
|
375 |
-
#
|
376 |
-
demo.load(
|
377 |
-
fn=lambda: calculate_saju("19900207", "0815", "여", "대구"),
|
378 |
-
outputs=result_output
|
379 |
-
)
|
380 |
|
381 |
gr.HTML("""
|
382 |
<div style="text-align: center; padding: 20px; margin-top: 30px; border-top: 1px solid #eee;">
|
|
|
332 |
|
333 |
birth_date = gr.Textbox(
|
334 |
label="생년월일",
|
335 |
+
placeholder="19851015 또는 1985-10-15",
|
336 |
info="8자리 숫자 또는 구분자 포함하여 입력"
|
337 |
)
|
338 |
|
339 |
birth_time = gr.Textbox(
|
340 |
label="태어난 시간 (선택사항)",
|
341 |
+
placeholder="1430 또는 14:30",
|
342 |
info="4자리 숫자 또는 구분자 포함하여 입력. 비우면 정오로 설정"
|
343 |
)
|
344 |
|
|
|
350 |
|
351 |
birth_place = gr.Textbox(
|
352 |
label="출생지",
|
353 |
+
placeholder="서울특별시",
|
354 |
info="시/도 단위로 입력해주세요"
|
355 |
)
|
356 |
|
|
|
362 |
with gr.Row():
|
363 |
with gr.Column():
|
364 |
result_output = gr.Markdown(
|
365 |
+
label="분석 결과",
|
366 |
+
value="👆 위의 정보를 입력하고 '만세력 분석하기' 버튼을 클릭하세요."
|
367 |
)
|
368 |
|
369 |
# 이벤트 연결
|
|
|
373 |
outputs=result_output
|
374 |
)
|
375 |
|
376 |
+
# 버튼 클릭 시에만 작동하도록 변경 (자동 로드 제거)
|
|
|
|
|
|
|
|
|
377 |
|
378 |
gr.HTML("""
|
379 |
<div style="text-align: center; padding: 20px; margin-top: 30px; border-top: 1px solid #eee;">
|