ElvisWang111 commited on
Commit
a38eb92
·
verified ·
1 Parent(s): 3734c99

Update workflow/modeling/modeling_render.py

Browse files
workflow/modeling/modeling_render.py CHANGED
@@ -124,9 +124,16 @@ def modeling_chat(agent, auto) -> None:
124
  "我是 Autostat 数据分析助手,很高兴为您服务!\n\n"
125
  "您可以在下方输入建模相关问题,或直接点击按钮获取建模建议。"
126
  )
127
- analyze_btn = st.button("🔍 建模推荐", key='modeling_suggest')
128
- result_placeholder = st.empty()
129
-
 
 
 
 
 
 
 
130
  chat_history = agent.load_memory()
131
 
132
  for idx, entry in enumerate(chat_history):
 
124
  "我是 Autostat 数据分析助手,很高兴为您服务!\n\n"
125
  "您可以在下方输入建模相关问题,或直接点击按钮获取建模建议。"
126
  )
127
+
128
+ c = st.columns(2)
129
+ with c[0]:
130
+ analyze_btn = st.button("🔍 建模推荐", key='modeling_suggest', use_container_width=True)
131
+ with c[1]:
132
+ clear_modeling_suggest = st.button("♻️ 清除建模分析", key='clear_modeling_suggest', use_container_width=True)
133
+ if clear_modeling_suggest:
134
+ agent.clear_memory()
135
+ agent.suggestion = None
136
+
137
  chat_history = agent.load_memory()
138
 
139
  for idx, entry in enumerate(chat_history):