Edge / app.py
4waiz's picture
Update app.py
9049520 verified
raw
history blame contribute delete
757 Bytes
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)