Showing
4 changed files
with
13 additions
and
25 deletions
| @@ -20,7 +20,7 @@ def main(): | @@ -20,7 +20,7 @@ def main(): | ||
| 20 | """主函数""" | 20 | """主函数""" |
| 21 | st.set_page_config( | 21 | st.set_page_config( |
| 22 | page_title="Insight Agent", | 22 | page_title="Insight Agent", |
| 23 | - page_icon="🔍", | 23 | + page_icon="", |
| 24 | layout="wide" | 24 | layout="wide" |
| 25 | ) | 25 | ) |
| 26 | 26 | ||
| @@ -48,14 +48,13 @@ def main(): | @@ -48,14 +48,13 @@ def main(): | ||
| 48 | max_content_length = 500000 # Kimi支持长文本 | 48 | max_content_length = 500000 # Kimi支持长文本 |
| 49 | 49 | ||
| 50 | # 简化的研究查询展示区域 | 50 | # 简化的研究查询展示区域 |
| 51 | - st.header("研究查询") | ||
| 52 | 51 | ||
| 53 | # 如果有自动查询,使用它作为默认值,否则显示占位符 | 52 | # 如果有自动查询,使用它作为默认值,否则显示占位符 |
| 54 | display_query = auto_query if auto_query else "等待从主页面接收搜索查询..." | 53 | display_query = auto_query if auto_query else "等待从主页面接收搜索查询..." |
| 55 | 54 | ||
| 56 | # 只读的查询展示区域 | 55 | # 只读的查询展示区域 |
| 57 | st.text_area( | 56 | st.text_area( |
| 58 | - "当前查询", | 57 | + "", |
| 59 | value=display_query, | 58 | value=display_query, |
| 60 | height=100, | 59 | height=100, |
| 61 | disabled=True, | 60 | disabled=True, |
| @@ -69,10 +68,7 @@ def main(): | @@ -69,10 +68,7 @@ def main(): | ||
| 69 | if auto_search and auto_query and 'auto_search_executed' not in st.session_state: | 68 | if auto_search and auto_query and 'auto_search_executed' not in st.session_state: |
| 70 | st.session_state.auto_search_executed = True | 69 | st.session_state.auto_search_executed = True |
| 71 | start_research = True | 70 | start_research = True |
| 72 | - st.success(f"🚀 接收到搜索请求:{auto_query}") | ||
| 73 | - st.info("正在启动研究...") | ||
| 74 | elif auto_query and not auto_search: | 71 | elif auto_query and not auto_search: |
| 75 | - st.info(f"📝 当前查询:{auto_query}") | ||
| 76 | st.warning("等待搜索启动信号...") | 72 | st.warning("等待搜索启动信号...") |
| 77 | 73 | ||
| 78 | # 验证配置 | 74 | # 验证配置 |
| @@ -20,7 +20,7 @@ def main(): | @@ -20,7 +20,7 @@ def main(): | ||
| 20 | """主函数""" | 20 | """主函数""" |
| 21 | st.set_page_config( | 21 | st.set_page_config( |
| 22 | page_title="Media Agent", | 22 | page_title="Media Agent", |
| 23 | - page_icon="🔍", | 23 | + page_icon="", |
| 24 | layout="wide" | 24 | layout="wide" |
| 25 | ) | 25 | ) |
| 26 | 26 | ||
| @@ -48,14 +48,13 @@ def main(): | @@ -48,14 +48,13 @@ def main(): | ||
| 48 | max_content_length = 20000 | 48 | max_content_length = 20000 |
| 49 | 49 | ||
| 50 | # 简化的研究查询展示区域 | 50 | # 简化的研究查询展示区域 |
| 51 | - st.header("研究查询") | ||
| 52 | 51 | ||
| 53 | # 如果有自动查询,使用它作为默认值,否则显示占位符 | 52 | # 如果有自动查询,使用它作为默认值,否则显示占位符 |
| 54 | display_query = auto_query if auto_query else "等待从主页面接收搜索查询..." | 53 | display_query = auto_query if auto_query else "等待从主页面接收搜索查询..." |
| 55 | 54 | ||
| 56 | # 只读的查询展示区域 | 55 | # 只读的查询展示区域 |
| 57 | st.text_area( | 56 | st.text_area( |
| 58 | - "当前查询", | 57 | + "", |
| 59 | value=display_query, | 58 | value=display_query, |
| 60 | height=100, | 59 | height=100, |
| 61 | disabled=True, | 60 | disabled=True, |
| @@ -69,10 +68,7 @@ def main(): | @@ -69,10 +68,7 @@ def main(): | ||
| 69 | if auto_search and auto_query and 'auto_search_executed' not in st.session_state: | 68 | if auto_search and auto_query and 'auto_search_executed' not in st.session_state: |
| 70 | st.session_state.auto_search_executed = True | 69 | st.session_state.auto_search_executed = True |
| 71 | start_research = True | 70 | start_research = True |
| 72 | - st.success(f"🚀 接收到搜索请求:{auto_query}") | ||
| 73 | - st.info("正在启动研究...") | ||
| 74 | elif auto_query and not auto_search: | 71 | elif auto_query and not auto_search: |
| 75 | - st.info(f"📝 当前查询:{auto_query}") | ||
| 76 | st.warning("等待搜索启动信号...") | 72 | st.warning("等待搜索启动信号...") |
| 77 | 73 | ||
| 78 | # 验证配置 | 74 | # 验证配置 |
| @@ -48,14 +48,13 @@ def main(): | @@ -48,14 +48,13 @@ def main(): | ||
| 48 | max_content_length = 20000 | 48 | max_content_length = 20000 |
| 49 | 49 | ||
| 50 | # 简化的研究查询展示区域 | 50 | # 简化的研究查询展示区域 |
| 51 | - st.header("研究查询") | ||
| 52 | 51 | ||
| 53 | # 如果有自动查询,使用它作为默认值,否则显示占位符 | 52 | # 如果有自动查询,使用它作为默认值,否则显示占位符 |
| 54 | display_query = auto_query if auto_query else "等待从主页面接收搜索查询..." | 53 | display_query = auto_query if auto_query else "等待从主页面接收搜索查询..." |
| 55 | 54 | ||
| 56 | # 只读的查询展示区域 | 55 | # 只读的查询展示区域 |
| 57 | st.text_area( | 56 | st.text_area( |
| 58 | - "当前查询", | 57 | + "", |
| 59 | value=display_query, | 58 | value=display_query, |
| 60 | height=100, | 59 | height=100, |
| 61 | disabled=True, | 60 | disabled=True, |
| @@ -69,10 +68,7 @@ def main(): | @@ -69,10 +68,7 @@ def main(): | ||
| 69 | if auto_search and auto_query and 'auto_search_executed' not in st.session_state: | 68 | if auto_search and auto_query and 'auto_search_executed' not in st.session_state: |
| 70 | st.session_state.auto_search_executed = True | 69 | st.session_state.auto_search_executed = True |
| 71 | start_research = True | 70 | start_research = True |
| 72 | - st.success(f"🚀 接收到搜索请求:{auto_query}") | ||
| 73 | - st.info("正在启动研究...") | ||
| 74 | elif auto_query and not auto_search: | 71 | elif auto_query and not auto_search: |
| 75 | - st.info(f"📝 当前查询:{auto_query}") | ||
| 76 | st.warning("等待搜索启动信号...") | 72 | st.warning("等待搜索启动信号...") |
| 77 | 73 | ||
| 78 | # 验证配置 | 74 | # 验证配置 |
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | <head> | 3 | <head> |
| 4 | <meta charset="UTF-8"> | 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | - <title>微博舆情预测系统</title> | 6 | + <title>致力于打造简洁通用的舆情分析平台</title> |
| 7 | <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.0/socket.io.js"></script> | 7 | <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.0/socket.io.js"></script> |
| 8 | <style> | 8 | <style> |
| 9 | * { | 9 | * { |
| @@ -261,10 +261,10 @@ | @@ -261,10 +261,10 @@ | ||
| 261 | <div class="container"> | 261 | <div class="container"> |
| 262 | <!-- 搜索框区域 --> | 262 | <!-- 搜索框区域 --> |
| 263 | <div class="search-section"> | 263 | <div class="search-section"> |
| 264 | - <div class="search-title">搜索框</div> | 264 | + <div class="search-title">致力于打造简洁通用的舆情分析平台</div> |
| 265 | <div class="search-box"> | 265 | <div class="search-box"> |
| 266 | - <input type="text" class="search-input" id="searchInput" placeholder="请输入搜索内容..."> | ||
| 267 | - <button class="search-button" id="searchButton">搜索</button> | 266 | + <input type="text" class="search-input" id="searchInput" placeholder="请输入要分析的内容..."> |
| 267 | + <button class="search-button" id="searchButton">开始</button> | ||
| 268 | </div> | 268 | </div> |
| 269 | </div> | 269 | </div> |
| 270 | 270 | ||
| @@ -275,7 +275,7 @@ | @@ -275,7 +275,7 @@ | ||
| 275 | <div class="embedded-header" id="embeddedHeader">嵌入的页面</div> | 275 | <div class="embedded-header" id="embeddedHeader">嵌入的页面</div> |
| 276 | <div class="embedded-content" id="embeddedContent"> | 276 | <div class="embedded-content" id="embeddedContent"> |
| 277 | <div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #666;"> | 277 | <div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #666;"> |
| 278 | - <span>只显示一个页面 - 点击按钮切换页面</span> | 278 | + <span>默认只显示第一个页面 - 点击按钮切换页面</span> |
| 279 | </div> | 279 | </div> |
| 280 | </div> | 280 | </div> |
| 281 | </div> | 281 | </div> |
| @@ -526,9 +526,9 @@ | @@ -526,9 +526,9 @@ | ||
| 526 | const content = document.getElementById('embeddedContent'); | 526 | const content = document.getElementById('embeddedContent'); |
| 527 | 527 | ||
| 528 | const appNames = { | 528 | const appNames = { |
| 529 | - insight: 'Insight Engine - 私有数据库分析', | ||
| 530 | - media: 'Media Engine - 多模态能力', | ||
| 531 | - query: 'Query Engine - 网页搜索' | 529 | + insight: 'Insight Agent - 私有数据库分析', |
| 530 | + media: 'Media Agent - 多模态能力', | ||
| 531 | + query: 'Query Agent - 网页搜索' | ||
| 532 | }; | 532 | }; |
| 533 | 533 | ||
| 534 | header.textContent = appNames[app] || app; | 534 | header.textContent = appNames[app] || app; |
-
Please register or login to post a comment