seawolf2357 commited on
Commit
a621b0b
·
verified ·
1 Parent(s): 3050173

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -137,6 +137,8 @@ with gr.Blocks(css_paths="app.css") as demo:
137
  with ms.Application() as app:
138
  with antd.ConfigProvider():
139
  with antd.Row(gutter=[32, 12]) as layout:
 
 
140
  with antd.Col(span=24, md=8):
141
  with antd.Flex(vertical=True, gap="middle", wrap=True):
142
  header = gr.HTML(f"""
@@ -154,6 +156,21 @@ with gr.Blocks(css_paths="app.css") as demo:
154
  btn = antd.Button("send", type="primary", size="large")
155
  clear_btn = antd.Button("clear history", type="default", size="large")
156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  with antd.Modal(open=False, title="set system Prompt", width="800px") as system_prompt_modal:
158
  systemPromptInput = antd.InputTextarea(
159
  SystemPrompt, auto_size=True)
 
137
  with ms.Application() as app:
138
  with antd.ConfigProvider():
139
  with antd.Row(gutter=[32, 12]) as layout:
140
+
141
+ # 좌측 패널 부분 수정
142
  with antd.Col(span=24, md=8):
143
  with antd.Flex(vertical=True, gap="middle", wrap=True):
144
  header = gr.HTML(f"""
 
156
  btn = antd.Button("send", type="primary", size="large")
157
  clear_btn = antd.Button("clear history", type="default", size="large")
158
 
159
+ # Examples 버튼 추가
160
+ antd.Divider("Try this example")
161
+ example_btn = antd.Button(
162
+ "다이나믹 차트 대쉬보드",
163
+ type="default",
164
+ block=True, # 전체 너비 사용
165
+ size="large"
166
+ )
167
+ example_btn.click(
168
+ fn=lambda: "Create an interactive dashboard with Chart.js showing different types of charts (line, bar, pie) with smooth animations. Include buttons to switch between different data views.",
169
+ inputs=[],
170
+ outputs=[input]
171
+ )
172
+
173
+
174
  with antd.Modal(open=False, title="set system Prompt", width="800px") as system_prompt_modal:
175
  systemPromptInput = antd.InputTextarea(
176
  SystemPrompt, auto_size=True)