INNER CODE UNIT · Python

render_app_description

mrwadams/stride-gpt · apps/web/main.py:478

def render_app_description():
    """Render the primary application-description text area.

    Pre-fills the box from ``app_input`` only on explicit external updates
    (GitHub, image, guided draft) via ``_sync_app_desc``; otherwise it never
    overwrites the widget's own value; doing so would clear the user's typing.
    Must run *after* every writer so the sync sees their updates in the same
    rerun.
    """
    if st.session_state.pop("_sync_app_desc", False) or "app_desc" not in st.session_state:
        st.session_state["app_desc"] = st.session_state.get("app_input", "")

    input_text = st.text_area(
        label="Describe the application to be modelled",
        placeholder="Enter your application details...",
        height=300,
        key="app_desc",
        help="Please provide a detailed description of the application, including the purpose of the application, the technologies used, and any other relevant information.",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…