openfree commited on
Commit
d76f10f
·
verified ·
1 Parent(s): eb507bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -939,11 +939,11 @@ with gr.Blocks(css_paths=["app.css"], theme=theme) as demo:
939
  with antd.ConfigProvider():
940
 
941
  # code Drawer
942
- with antd.Drawer(open=False, title="code", placement="left", width="750px") as code_drawer:
943
  code_output = legacy.Markdown()
944
 
945
  # history Drawer
946
- with antd.Drawer(open=False, title="history", placement="left", width="900px") as history_drawer:
947
  history_output = legacy.Chatbot(
948
  show_label=False, flushing=False, height=960, elem_classes="history_chatbot"
949
  )
@@ -951,15 +951,15 @@ with gr.Blocks(css_paths=["app.css"], theme=theme) as demo:
951
  # templates Drawer (하나로 통합)
952
  with antd.Drawer(
953
  open=False,
954
- title="Templates",
955
  placement="right",
956
  width="900px",
957
  elem_classes="session-drawer"
958
  ) as session_drawer:
959
  with antd.Flex(vertical=True, gap="middle"):
960
- gr.Markdown("### Available Game Templates (All-in-One)")
961
  session_history = gr.HTML(elem_classes="session-history")
962
- close_btn = antd.Button("Close", type="default", elem_classes="close-btn")
963
 
964
  # 좌우 레이아웃 + 상단 정렬
965
  with antd.Row(gutter=[32, 12], align="top", elem_classes="equal-height-container") as layout:
@@ -988,22 +988,22 @@ with gr.Blocks(css_paths=["app.css"], theme=theme) as demo:
988
  with antd.Col(span=24, md=8, elem_classes="equal-height-col"):
989
  # 우측 상단 메뉴 + 액션 버튼
990
  with antd.Flex(vertical=True, gap="small", elem_classes="right-top-buttons"):
991
- # ── (1) 상단 메뉴 Bar (코드보기, 히스토리, 템플릿=단 하나) ──
992
- with antd.Flex(gap="small", elem_classes="setting-buttons", justify="end"):
993
- codeBtn = antd.Button("🧑‍💻코드 보기", type="default")
994
- historyBtn = antd.Button("📜히스토리", type="default")
995
- template_btn = antd.Button("🎮템플릿", type="default")
996
 
997
- # ── (2) 액션 버튼들 (이전에 하단에 있던 버튼들) ──
998
  with antd.Flex(gap="small", justify="space-between", elem_classes="action-buttons"):
999
- btn = antd.Button("전송", type="primary", size="large")
1000
- boost_btn = antd.Button("증강", type="default", size="large")
1001
- execute_btn = antd.Button("코드", type="default", size="large")
1002
- deploy_btn = antd.Button("배포", type="default", size="large")
1003
- clear_btn = antd.Button("클리어", type="default", size="large")
1004
 
1005
  # ── (3) 입력창 ──
1006
- with antd.Flex(vertical=True, gap="middle", wrap=True, elem_classes="panel input-panel"):
1007
  # 입력 영역
1008
  input_text = antd.InputTextarea(
1009
  size="large",
 
939
  with antd.ConfigProvider():
940
 
941
  # code Drawer
942
+ with antd.Drawer(open=False, title="코드 보기", placement="left", width="750px") as code_drawer:
943
  code_output = legacy.Markdown()
944
 
945
  # history Drawer
946
+ with antd.Drawer(open=False, title="히스토리", placement="left", width="900px") as history_drawer:
947
  history_output = legacy.Chatbot(
948
  show_label=False, flushing=False, height=960, elem_classes="history_chatbot"
949
  )
 
951
  # templates Drawer (하나로 통합)
952
  with antd.Drawer(
953
  open=False,
954
+ title="게임 템플릿",
955
  placement="right",
956
  width="900px",
957
  elem_classes="session-drawer"
958
  ) as session_drawer:
959
  with antd.Flex(vertical=True, gap="middle"):
960
+ gr.Markdown("### 사용 가능한 게임 템플릿")
961
  session_history = gr.HTML(elem_classes="session-history")
962
+ close_btn = antd.Button("닫기", type="default", elem_classes="close-btn")
963
 
964
  # 좌우 레이아웃 + 상단 정렬
965
  with antd.Row(gutter=[32, 12], align="top", elem_classes="equal-height-container") as layout:
 
988
  with antd.Col(span=24, md=8, elem_classes="equal-height-col"):
989
  # 우측 상단 메뉴 + 액션 버튼
990
  with antd.Flex(vertical=True, gap="small", elem_classes="right-top-buttons"):
991
+ # ── (1) 상단 메뉴 Bar (코드보기, 히스토리, 템플릿) ──
992
+ with antd.Flex(gap="small", elem_classes="setting-buttons", justify="space-between"):
993
+ codeBtn = antd.Button("🧑‍💻 코드 보기", type="default", title="코드 보기")
994
+ historyBtn = antd.Button("📜 히스토리", type="default", title="히스토리")
995
+ template_btn = antd.Button("🎮 템플릿", type="default", title="템플릿")
996
 
997
+ # ── (2) 액션 버튼들 ──
998
  with antd.Flex(gap="small", justify="space-between", elem_classes="action-buttons"):
999
+ btn = antd.Button("전송", type="primary", size="large", title="전송")
1000
+ boost_btn = antd.Button("증강", type="default", size="large", title="증강")
1001
+ execute_btn = antd.Button("코드", type="default", size="large", title="코드")
1002
+ deploy_btn = antd.Button("배포", type="default", size="large", title="배포")
1003
+ clear_btn = antd.Button("클리어", type="default", size="large", title="클리어")
1004
 
1005
  # ── (3) 입력창 ──
1006
+ with antd.Flex(vertical=True, gap="middle", wrap=True, elem_classes="input-panel"):
1007
  # 입력 영역
1008
  input_text = antd.InputTextarea(
1009
  size="large",