openfree commited on
Commit
c3ed2ab
·
verified ·
1 Parent(s): 1fa0e95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1217,12 +1217,12 @@ with gr.Blocks(css="app.css", theme=theme) as demo: # Use css parameter directly
1217
  with antd.ConfigProvider(): # Provides context for Ant Design components
1218
 
1219
  # Drawers for Code and History
1220
- with antd.Drawer(open=False, title="코드 보기", placement="left", width="50%", name="code_drawer") as code_drawer:
1221
  # Use gr.Code for better syntax highlighting if legacy.Markdown causes issues
1222
  code_output = gr.Code(language="html", label="Generated Code", interactive=False)
1223
  # code_output = legacy.Markdown(elem_classes="code-output-markdown") # Keep if preferred
1224
 
1225
- with antd.Drawer(open=False, title="히스토리", placement="left", width="60%", name="history_drawer") as history_drawer:
1226
  history_output = legacy.Chatbot(
1227
  show_label=False,
1228
  flushing=False, # Keep flushing false for standard updates
@@ -1237,9 +1237,10 @@ with gr.Blocks(css="app.css", theme=theme) as demo: # Use css parameter directly
1237
  title="🎮 게임 템플릿",
1238
  placement="right",
1239
  width="60%", # Adjust width
1240
- name="session_drawer", # Use name for easier selection if needed
1241
  elem_classes="session-drawer"
1242
  ) as session_drawer:
 
 
1243
  with antd.Flex(vertical=True, gap="middle"):
1244
  # Use gr.HTML for the template display
1245
  session_history_html = gr.HTML(elem_classes="session-history-html") # Renamed variable
 
1217
  with antd.ConfigProvider(): # Provides context for Ant Design components
1218
 
1219
  # Drawers for Code and History
1220
+ with antd.Drawer(open=False, title="코드 보기", placement="left", width="50%") as code_drawer:
1221
  # Use gr.Code for better syntax highlighting if legacy.Markdown causes issues
1222
  code_output = gr.Code(language="html", label="Generated Code", interactive=False)
1223
  # code_output = legacy.Markdown(elem_classes="code-output-markdown") # Keep if preferred
1224
 
1225
+ with antd.Drawer(open=False, title="히스토리", placement="left", width="60%") as history_drawer:
1226
  history_output = legacy.Chatbot(
1227
  show_label=False,
1228
  flushing=False, # Keep flushing false for standard updates
 
1237
  title="🎮 게임 템플릿",
1238
  placement="right",
1239
  width="60%", # Adjust width
 
1240
  elem_classes="session-drawer"
1241
  ) as session_drawer:
1242
+
1243
+
1244
  with antd.Flex(vertical=True, gap="middle"):
1245
  # Use gr.HTML for the template display
1246
  session_history_html = gr.HTML(elem_classes="session-history-html") # Renamed variable