yanyoyo
commited on
Commit
·
6cc28db
1
Parent(s):
b97cbeb
fix
Browse files
examples/agent_api_web_demo.py
CHANGED
@@ -46,11 +46,6 @@ class StreamlitUI:
|
|
46 |
|
47 |
def init_streamlit(self):
|
48 |
"""初始化 Streamlit 的 UI 设置。"""
|
49 |
-
st.set_page_config(
|
50 |
-
layout='wide',
|
51 |
-
page_title='lagent-web',
|
52 |
-
page_icon='./docs/imgs/lagent_icon.png'
|
53 |
-
)
|
54 |
st.header(':robot_face: :blue[Lagent] Web Demo ', divider='rainbow')
|
55 |
|
56 |
def setup_sidebar(self):
|
@@ -133,11 +128,6 @@ def main():
|
|
133 |
session_state.init_state()
|
134 |
st.session_state['ui'] = StreamlitUI(session_state)
|
135 |
else:
|
136 |
-
st.set_page_config(
|
137 |
-
layout='wide',
|
138 |
-
page_title='lagent-web',
|
139 |
-
page_icon='./docs/imgs/lagent_icon.png'
|
140 |
-
)
|
141 |
st.header(':robot_face: :blue[Lagent] Web Demo ', divider='rainbow')
|
142 |
|
143 |
# 设置侧边栏并获取模型和插件信息
|
|
|
46 |
|
47 |
def init_streamlit(self):
|
48 |
"""初始化 Streamlit 的 UI 设置。"""
|
|
|
|
|
|
|
|
|
|
|
49 |
st.header(':robot_face: :blue[Lagent] Web Demo ', divider='rainbow')
|
50 |
|
51 |
def setup_sidebar(self):
|
|
|
128 |
session_state.init_state()
|
129 |
st.session_state['ui'] = StreamlitUI(session_state)
|
130 |
else:
|
|
|
|
|
|
|
|
|
|
|
131 |
st.header(':robot_face: :blue[Lagent] Web Demo ', divider='rainbow')
|
132 |
|
133 |
# 设置侧边栏并获取模型和插件信息
|
examples/multi_agents_api_web_demo.py
CHANGED
@@ -150,7 +150,6 @@ def main():
|
|
150 |
"""
|
151 |
主函数:构建Streamlit界面并处理用户交互
|
152 |
"""
|
153 |
-
st.set_page_config(layout='wide', page_title='Lagent Web Demo', page_icon='🤖')
|
154 |
st.title("多代理博客优化助手")
|
155 |
|
156 |
model_type, api_base = setup_sidebar()
|
|
|
150 |
"""
|
151 |
主函数:构建Streamlit界面并处理用户交互
|
152 |
"""
|
|
|
153 |
st.title("多代理博客优化助手")
|
154 |
|
155 |
model_type, api_base = setup_sidebar()
|