Spaces:
Build error
Build error
File size: 1,213 Bytes
687ae28 | 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | import streamlit as st
def main():
st.set_page_config(page_title="Chatbot Web Interface", layout="wide")
# Title and Sign Out button
col1, col2 = st.columns([3, 1])
with col1:
st.title("CHATBOT WEB INTERFACE")
with col2:
st.button("Sign Out")
# Main layout
left_column, right_column = st.columns([1, 3])
# Left Menu Panel
with left_column:
st.subheader("Left Menu Panel")
st.button("Option 1")
st.button("Option 2")
st.button("Option 3")
st.button("Option 4")
st.markdown("---")
st.button("Model Parameters")
# Main Chat Area
with right_column:
st.subheader("Main Chat Area")
# Chat messages container
chat_container = st.container()
with chat_container:
st.markdown("### Chat Messages")
st.text_area("", height=300, key="chat_messages", disabled=True)
# User input and buttons
user_input = st.text_input("Input User Message:")
col1, col2 = st.columns([1, 5])
with col1:
st.button("Send")
with col2:
st.button("Clear chat")
if __name__ == "__main__":
main() |