测试集成mcp
Browse files
app.py
CHANGED
|
@@ -1826,20 +1826,20 @@ def main():
|
|
| 1826 |
)
|
| 1827 |
# with gr.TabItem("Comparison", elem_classes=["tab-item"]):
|
| 1828 |
# create_tab_content("comparison")
|
| 1829 |
-
|
| 1830 |
# 聊天面板
|
| 1831 |
|
| 1832 |
# chatbot.render()
|
| 1833 |
-
|
| 1834 |
-
|
| 1835 |
-
|
| 1836 |
-
|
| 1837 |
-
|
| 1838 |
-
|
| 1839 |
-
|
| 1840 |
-
|
| 1841 |
-
|
| 1842 |
-
|
| 1843 |
|
| 1844 |
# 在页面加载时自动刷新公司列表,确保显示最新的数据
|
| 1845 |
# demo.load(
|
|
|
|
| 1826 |
)
|
| 1827 |
# with gr.TabItem("Comparison", elem_classes=["tab-item"]):
|
| 1828 |
# create_tab_content("comparison")
|
| 1829 |
+
with gr.Column(scale=2, min_width=400):
|
| 1830 |
# 聊天面板
|
| 1831 |
|
| 1832 |
# chatbot.render()
|
| 1833 |
+
gr.LoginButton()
|
| 1834 |
+
gr.ChatInterface(
|
| 1835 |
+
respond,
|
| 1836 |
+
title="Easy Financial Report",
|
| 1837 |
+
additional_inputs=[
|
| 1838 |
+
gr.State(value=""), # CRITICAL: Store session URL across turns (hidden from UI)
|
| 1839 |
+
gr.State(value={}) # CRITICAL: Store agent context across turns (hidden from UI)
|
| 1840 |
+
],
|
| 1841 |
+
additional_inputs_accordion=gr.Accordion(label="Settings", open=False, visible=False), # Hide the accordion completely
|
| 1842 |
+
)
|
| 1843 |
|
| 1844 |
# 在页面加载时自动刷新公司列表,确保显示最新的数据
|
| 1845 |
# demo.load(
|