openfree commited on
Commit
03dceac
·
verified ·
1 Parent(s): c26775c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -764,7 +764,14 @@ with gr.Blocks(css_paths="app.css", theme=theme) as demo:
764
 
765
  # 오른쪽 Col: 메뉴 버튼들 + 입력창 + 배포 결과
766
  with antd.Col(span=24, md=8):
767
-
 
 
 
 
 
 
 
768
  # ── (1) 상단 메뉴 Bar (코드보기, 히스토리, 템플릿=단 하나) ──
769
  with antd.Flex(gap="small", elem_classes="setting-buttons", justify="end"):
770
  codeBtn = antd.Button("🧑‍💻 코드 보기", type="default")
@@ -890,4 +897,4 @@ if __name__ == "__main__":
890
  demo.queue(default_concurrency_limit=20).launch(ssr_mode=False)
891
  except Exception as e:
892
  print(f"Initialization error: {e}")
893
- raise
 
764
 
765
  # 오른쪽 Col: 메뉴 버튼들 + 입력창 + 배포 결과
766
  with antd.Col(span=24, md=8):
767
+ # 빈 헤더 추가하여 왼쪽 패널과 높이 맞추기
768
+ gr.HTML(r"""
769
+ <div class="render_header" style="visibility: hidden;">
770
+ <span class="header_btn"></span>
771
+ <span class="header_btn"></span>
772
+ <span class="header_btn"></span>
773
+ </div>
774
+ """)
775
  # ── (1) 상단 메뉴 Bar (코드보기, 히스토리, 템플릿=단 하나) ──
776
  with antd.Flex(gap="small", elem_classes="setting-buttons", justify="end"):
777
  codeBtn = antd.Button("🧑‍💻 코드 보기", type="default")
 
897
  demo.queue(default_concurrency_limit=20).launch(ssr_mode=False)
898
  except Exception as e:
899
  print(f"Initialization error: {e}")
900
+ raise