haepada commited on
Commit
4fbaf37
·
verified ·
1 Parent(s): 0787a0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -1427,7 +1427,6 @@ def create_interface():
1427
  gr.update(visible=True),
1428
  gr.update(visible=False),
1429
  gr.update(visible=False),
1430
- gr.update(visible=False),
1431
  state
1432
  )
1433
  state = safe_state_update(state, {"user_name": name})
@@ -1435,7 +1434,6 @@ def create_interface():
1435
  gr.update(visible=False),
1436
  gr.update(visible=True),
1437
  gr.update(visible=False),
1438
- gr.update(visible=False),
1439
  state
1440
  )
1441
 
@@ -1443,9 +1441,9 @@ def create_interface():
1443
  return (
1444
  gr.update(visible=False),
1445
  gr.update(visible=False),
1446
- gr.update(visible=True),
1447
- gr.update(visible=False)
1448
  )
 
1449
 
1450
  def handle_blessing_complete(audio, state):
1451
  # 분석 중 메시지 표시
@@ -1631,12 +1629,12 @@ def create_interface():
1631
  name_submit_btn.click(
1632
  fn=handle_name_submit,
1633
  inputs=[name_input, state],
1634
- outputs=[welcome_section, story_section, blessing_section, entry_guide_section, state]
1635
  )
1636
 
1637
  continue_btn.click(
1638
  fn=handle_continue,
1639
- outputs=[story_section, welcome_section, blessing_section, entry_guide_section]
1640
  )
1641
 
1642
  set_baseline_btn.click(
 
1427
  gr.update(visible=True),
1428
  gr.update(visible=False),
1429
  gr.update(visible=False),
 
1430
  state
1431
  )
1432
  state = safe_state_update(state, {"user_name": name})
 
1434
  gr.update(visible=False),
1435
  gr.update(visible=True),
1436
  gr.update(visible=False),
 
1437
  state
1438
  )
1439
 
 
1441
  return (
1442
  gr.update(visible=False),
1443
  gr.update(visible=False),
1444
+ gr.update(visible=True)
 
1445
  )
1446
+
1447
 
1448
  def handle_blessing_complete(audio, state):
1449
  # 분석 중 메시지 표시
 
1629
  name_submit_btn.click(
1630
  fn=handle_name_submit,
1631
  inputs=[name_input, state],
1632
+ outputs=[welcome_section, story_section, blessing_section, state]
1633
  )
1634
 
1635
  continue_btn.click(
1636
  fn=handle_continue,
1637
+ outputs=[story_section, welcome_section, blessing_section]
1638
  )
1639
 
1640
  set_baseline_btn.click(