Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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.
|
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.
|
806 |
gr.Markdown("Enter your question to begin")
|
807 |
-
with gr.
|
808 |
gr.Markdown("Creating visual presentation...")
|
809 |
-
with gr.
|
810 |
sandbox = gr.HTML(elem_classes="html_content")
|
811 |
-
with gr.
|
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.
|
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 -->
|