| import streamlit as st |
|
|
| st.set_page_config(page_title="EDGE", page_icon="🤖", layout="centered") |
|
|
| |
| try: |
| st.image("logo.png", width=220) |
| except Exception: |
| st.title("EDGE") |
|
|
| st.success("✅ Frontend is alive. Type below to interact.") |
|
|
| |
| if "chat" not in st.session_state: st.session_state.chat = [] |
| for role, text in st.session_state.chat: |
| with st.chat_message(role): st.markdown(text) |
|
|
| msg = st.chat_input("Say something…") |
| if msg: |
| st.session_state.chat.append(("user", msg)) |
| with st.chat_message("user"): st.markdown(msg) |
| reply = f"You said: **{msg}**" |
| st.session_state.chat.append(("assistant", reply)) |
| with st.chat_message("assistant"): st.markdown(reply) |
|
|