seawolf2357 commited on
Commit
58017b2
·
verified ·
1 Parent(s): 5d9fa40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -336,7 +336,11 @@ def update_session_list():
336
  def load_session_history(session_id):
337
  history = get_session_history(session_id)
338
  return [[p, r] for p, r, _ in history]
339
-
 
 
 
 
340
  with gr.Blocks(css_paths="app.css",theme=theme) as demo:
341
  history = gr.State([])
342
  setting = gr.State({
@@ -345,6 +349,8 @@ with gr.Blocks(css_paths="app.css",theme=theme) as demo:
345
 
346
  with ms.Application() as app:
347
  with antd.ConfigProvider():
 
 
348
  # Drawer 컴포넌트들
349
  with antd.Drawer(open=False, title="code", placement="left", width="750px") as code_drawer:
350
  code_output = legacy.Markdown()
 
336
  def load_session_history(session_id):
337
  history = get_session_history(session_id)
338
  return [[p, r] for p, r, _ in history]
339
+
340
+
341
+ # Demo 인스턴스 먼저 생성
342
+ demo_instance = Demo()
343
+
344
  with gr.Blocks(css_paths="app.css",theme=theme) as demo:
345
  history = gr.State([])
346
  setting = gr.State({
 
349
 
350
  with ms.Application() as app:
351
  with antd.ConfigProvider():
352
+
353
+
354
  # Drawer 컴포넌트들
355
  with antd.Drawer(open=False, title="code", placement="left", width="750px") as code_drawer:
356
  code_output = legacy.Markdown()