Skip to content

执行launch.pyw后无对话框 #632

Description

@Geoffrey-hougaojie

真正根因stapp.py 第 124 行 st.text_area("Loop prompt", ..., height=1) 在新版 Streamlit 中抛出:\n\n> StreamlitAPIException: Invalid height 1px for st.text_area - must be at least 68 pixels.\n\nSidebar 渲染时的异常导致整个页面崩溃,主区域的 st.chat_input 对话框无法显示。\n\n根本不是上次的 CSS 问题(100vw→100% 和 stdout 重定向早已在代码中),是本次 更新代码 带来新特性(Loop prompt textarea)的同时,Streamlit 版本也升级了,新增了 height ≥ 68 的校验。\n\n---\n\n### 修复内容\n\n| # | 文件 | 修改 | 作用 |\n|---|------|------|------|\n| 1 | frontends/stapp.py:124 | height=1height=68 | 满足 Streamlit text_area 最低高度要求 |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions