Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -478,7 +478,8 @@ def create_main_interface():
|
|
478 |
with demo:
|
479 |
with gr.Tabs(elem_classes="main-tabs") as tabs:
|
480 |
# MOUSE 탭
|
481 |
-
with gr.Tab("
|
|
|
482 |
history = gr.State([])
|
483 |
setting = gr.State({
|
484 |
"system": SystemPrompt,
|
@@ -518,10 +519,13 @@ def create_main_interface():
|
|
518 |
|
519 |
# 버튼 그룹
|
520 |
with antd.Flex(gap="small", justify="space-between"):
|
521 |
-
btn = antd.Button("
|
522 |
-
boost_btn = antd.Button("
|
523 |
deploy_btn = antd.Button("Share", type="default", size="large")
|
524 |
clear_btn = antd.Button("Clear", type="default", size="large")
|
|
|
|
|
|
|
525 |
|
526 |
deploy_result = gr.HTML(label="배포 결과")
|
527 |
|
@@ -537,12 +541,17 @@ def create_main_interface():
|
|
537 |
# 탭 컨텐츠
|
538 |
with antd.Tabs(active_key="empty", render_tab_bar="() => null") as state_tab:
|
539 |
with antd.Tabs.Item(key="empty"):
|
540 |
-
|
|
|
|
|
541 |
with antd.Tabs.Item(key="loading"):
|
542 |
-
loading = antd.Spin(True, tip="
|
543 |
with antd.Tabs.Item(key="render"):
|
544 |
sandbox = gr.HTML(elem_classes="html_content")
|
545 |
|
|
|
|
|
|
|
546 |
# 이벤트 핸들러 연결
|
547 |
historyBtn.click(
|
548 |
history_render,
|
|
|
478 |
with demo:
|
479 |
with gr.Tabs(elem_classes="main-tabs") as tabs:
|
480 |
# MOUSE 탭
|
481 |
+
with gr.Tab("Visual AI Assistant", elem_id="mouse-tab", elem_classes="mouse-tab"):
|
482 |
+
|
483 |
history = gr.State([])
|
484 |
setting = gr.State({
|
485 |
"system": SystemPrompt,
|
|
|
519 |
|
520 |
# 버튼 그룹
|
521 |
with antd.Flex(gap="small", justify="space-between"):
|
522 |
+
btn = antd.Button("Generate", type="primary", size="large")
|
523 |
+
boost_btn = antd.Button("Enhance", type="default", size="large")
|
524 |
deploy_btn = antd.Button("Share", type="default", size="large")
|
525 |
clear_btn = antd.Button("Clear", type="default", size="large")
|
526 |
+
historyBtn = antd.Button("📜 History", type="default")
|
527 |
+
|
528 |
+
|
529 |
|
530 |
deploy_result = gr.HTML(label="배포 결과")
|
531 |
|
|
|
541 |
# 탭 컨텐츠
|
542 |
with antd.Tabs(active_key="empty", render_tab_bar="() => null") as state_tab:
|
543 |
with antd.Tabs.Item(key="empty"):
|
544 |
+
|
545 |
+
empty = antd.Empty(description="Enter your question to begin", elem_classes="right_content")
|
546 |
+
|
547 |
with antd.Tabs.Item(key="loading"):
|
548 |
+
loading = antd.Spin(True, tip="Creating visual presentation...", size="large", elem_classes="right_content")
|
549 |
with antd.Tabs.Item(key="render"):
|
550 |
sandbox = gr.HTML(elem_classes="html_content")
|
551 |
|
552 |
+
|
553 |
+
|
554 |
+
|
555 |
# 이벤트 핸들러 연결
|
556 |
historyBtn.click(
|
557 |
history_render,
|