Spaces:
Build error
Build error
| 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() |