JC321 commited on
Commit
196550f
·
verified ·
1 Parent(s): 941f17c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1954,10 +1954,10 @@ def main():
1954
  # create_tab_content("comparison")
1955
  with gr.Column(scale=2, min_width=400):
1956
  # 聊天面板
1957
- # ✅ 使用 chat_direct.chatbot_response 替代 chatbot.chat_main.respond
1958
- # 这样可以直接调用MCP函数,而不需要HTTP服务器
1959
  gr.ChatInterface(
1960
- chatbot_response,
1961
  type="messages", # ✅ 使用messages格式
1962
  title="Easy Financial AI Assistant", # ✅ 保留标题
1963
  chatbot=gr.Chatbot(height=550), # ✅ 增加聊天框高度
 
1954
  # create_tab_content("comparison")
1955
  with gr.Column(scale=2, min_width=400):
1956
  # 聊天面板
1957
+ # ✅ 使用 chatbot.chat_main.respond (MCP_Financial_Report智能体)
1958
+ # Investment Suggestion和Analysis Report继续使用EasyFinancialAgent
1959
  gr.ChatInterface(
1960
+ respond,
1961
  type="messages", # ✅ 使用messages格式
1962
  title="Easy Financial AI Assistant", # ✅ 保留标题
1963
  chatbot=gr.Chatbot(height=550), # ✅ 增加聊天框高度