Update app.py
Browse files
app.py
CHANGED
|
@@ -58,21 +58,12 @@ def call_api(message):
|
|
| 58 |
except requests.exceptions.RequestException as e:
|
| 59 |
return f"Error: {str(e)}"
|
| 60 |
|
| 61 |
-
# Streamlit Configurations (must come first)
|
| 62 |
-
st.set_page_config(page_title="💬 DUBSChat", layout="centered")
|
| 63 |
-
|
| 64 |
-
# Sidebar Configuration
|
| 65 |
-
with st.sidebar:
|
| 66 |
-
st.markdown("### DUBS Settings")
|
| 67 |
-
st.markdown("""Other Features.""")
|
| 68 |
-
st.markdown("""Comming Soon!""")
|
| 69 |
-
|
| 70 |
# Chat History Initialization
|
| 71 |
if "messages" not in st.session_state:
|
| 72 |
st.session_state["messages"] = [{"role": "assistant", "content": "Hello! How can I assist you today?"}]
|
| 73 |
|
| 74 |
# Main Chat UI
|
| 75 |
-
st.title("
|
| 76 |
st.markdown("Empowering you with a Sustainable AI")
|
| 77 |
|
| 78 |
# Chat Display
|
|
|
|
| 58 |
except requests.exceptions.RequestException as e:
|
| 59 |
return f"Error: {str(e)}"
|
| 60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
# Chat History Initialization
|
| 62 |
if "messages" not in st.session_state:
|
| 63 |
st.session_state["messages"] = [{"role": "assistant", "content": "Hello! How can I assist you today?"}]
|
| 64 |
|
| 65 |
# Main Chat UI
|
| 66 |
+
st.title("💬 DUBSChat")
|
| 67 |
st.markdown("Empowering you with a Sustainable AI")
|
| 68 |
|
| 69 |
# Chat Display
|