openfree commited on
Commit
b978a4a
·
verified ·
1 Parent(s): 78581e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -920,8 +920,6 @@ with gr.Blocks(css_paths=["app.css"], theme=theme) as demo:
920
  )
921
  gr.HTML('<div class="help-text">💡 원하는 게임의 설명을 입력하세요. 예: "테트리스 게임 제작해줘."</div>')
922
 
923
- deploy_result_container = gr.Markdown(value="", visible=False)
924
-
925
 
926
 
927
  # Code Drawer 열기/닫기
@@ -971,7 +969,14 @@ with gr.Blocks(css_paths=["app.css"], theme=theme) as demo:
971
  outputs=[deploy_result_container]
972
  )
973
 
974
-
 
 
 
 
 
 
 
975
  deploy_result_container = gr.Markdown(value="", visible=False)
976
  # ------------------------
977
  # 9) 실행
 
920
  )
921
  gr.HTML('<div class="help-text">💡 원하는 게임의 설명을 입력하세요. 예: "테트리스 게임 제작해줘."</div>')
922
 
 
 
923
 
924
 
925
  # Code Drawer 열기/닫기
 
969
  outputs=[deploy_result_container]
970
  )
971
 
972
+ deploy_btn.click(
973
+ fn=deploy_and_show, # ← 여기!
974
+ inputs=[code_output],
975
+ outputs=[deploy_result_container, # Markdown 메시지
976
+ sandbox, # 왼쪽 iframe
977
+ state_tab] # 탭 전환
978
+ )
979
+
980
  deploy_result_container = gr.Markdown(value="", visible=False)
981
  # ------------------------
982
  # 9) 실행