File size: 757 Bytes
9049520 1bf838c 9049520 1bf838c 9049520 7428b66 9049520 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import streamlit as st
st.set_page_config(page_title="EDGE", page_icon="🤖", layout="centered")
# show your logo if present
try:
st.image("logo.png", width=220)
except Exception:
st.title("EDGE")
st.success("✅ Frontend is alive. Type below to interact.")
# tiny chat echo so you can 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)
|