openfree commited on
Commit
f3d21d6
ยท
verified ยท
1 Parent(s): 9c6e21f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -756,12 +756,11 @@ The response should be in HTML format with appropriate styling."""
756
  }
757
  """
758
 
759
- demo = gr.Blocks(css=custom_css, theme=theme)
760
 
761
  with demo:
762
  with gr.Row(): # ์ „์ฒด๋ฅผ ๊ฐ์‹ธ๋Š” Row ์ถ”๊ฐ€
763
  # ์ขŒ์ธก ํŒจ๋„
764
- with gr.Column(scale=1):
765
  mode = gr.Radio(
766
  choices=["Generate", "Generate + Web Search"],
767
  label="Mode",
@@ -785,8 +784,8 @@ The response should be in HTML format with appropriate styling."""
785
  deploy_result = gr.HTML(label="Share Result", elem_classes="deploy-result")
786
 
787
  # ์šฐ์ธก ํŒจ๋„
788
- with gr.Column(scale=2):
789
- with gr.Box(): # Box๋กœ ๊ฐ์‹ธ์„œ ์‹œ๊ฐ์  ๊ตฌ๋ถ„
790
  gr.HTML("""
791
  <div class="window-frame">
792
  <div class="window-header">
@@ -802,13 +801,13 @@ The response should be in HTML format with appropriate styling."""
802
 
803
  # ๊ฒฐ๊ณผ ํ‘œ์‹œ ์˜์—ญ
804
  with gr.Tabs(selected="empty") as state_tab:
805
- with gr.TabItem("empty"):
806
  gr.Markdown("Enter your question to begin")
807
- with gr.TabItem("loading"):
808
  gr.Markdown("Creating visual presentation...")
809
- with gr.TabItem("render"):
810
  sandbox = gr.HTML(elem_classes="html_content")
811
- with gr.TabItem("error"):
812
  gr.Markdown("An error occurred. Please try again.")
813
 
814
  # ์ƒํƒœ ๋ณ€์ˆ˜๋“ค
@@ -817,7 +816,7 @@ The response should be in HTML format with appropriate styling."""
817
  code_output = gr.State("")
818
 
819
  # Drawer ์ปดํฌ๋„ŒํŠธ
820
- with gr.Box() as code_drawer:
821
  gr.HTML("""
822
  <div class="thinking-container">
823
  <!-- thinking container content -->
 
756
  }
757
  """
758
 
 
759
 
760
  with demo:
761
  with gr.Row(): # ์ „์ฒด๋ฅผ ๊ฐ์‹ธ๋Š” Row ์ถ”๊ฐ€
762
  # ์ขŒ์ธก ํŒจ๋„
763
+ with gr.Column(scale=1, elem_classes="left-panel"):
764
  mode = gr.Radio(
765
  choices=["Generate", "Generate + Web Search"],
766
  label="Mode",
 
784
  deploy_result = gr.HTML(label="Share Result", elem_classes="deploy-result")
785
 
786
  # ์šฐ์ธก ํŒจ๋„
787
+ with gr.Column(scale=2, elem_classes="right-panel"):
788
+ with gr.Group(): # Box ๋Œ€์‹  Group ์‚ฌ์šฉ
789
  gr.HTML("""
790
  <div class="window-frame">
791
  <div class="window-header">
 
801
 
802
  # ๊ฒฐ๊ณผ ํ‘œ์‹œ ์˜์—ญ
803
  with gr.Tabs(selected="empty") as state_tab:
804
+ with gr.Tab("empty"):
805
  gr.Markdown("Enter your question to begin")
806
+ with gr.Tab("loading"):
807
  gr.Markdown("Creating visual presentation...")
808
+ with gr.Tab("render"):
809
  sandbox = gr.HTML(elem_classes="html_content")
810
+ with gr.Tab("error"):
811
  gr.Markdown("An error occurred. Please try again.")
812
 
813
  # ์ƒํƒœ ๋ณ€์ˆ˜๋“ค
 
816
  code_output = gr.State("")
817
 
818
  # Drawer ์ปดํฌ๋„ŒํŠธ
819
+ with gr.Group() as code_drawer: # Box ๋Œ€์‹  Group ์‚ฌ์šฉ
820
  gr.HTML("""
821
  <div class="thinking-container">
822
  <!-- thinking container content -->