Update app.py
Browse files
app.py
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from api_helper import call_api # Keep the original API logic
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
# Sidebar Configuration
|
| 5 |
with st.sidebar:
|
| 6 |
st.markdown("### DUBS Settings")
|
| 7 |
st.markdown("""[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)""")
|
| 8 |
st.markdown("""[](https://codespaces.new/streamlit/llm-examples?quickstart=1)""")
|
| 9 |
|
| 10 |
-
# Streamlit Configurations
|
| 11 |
-
st.set_page_config(page_title="💬 DUBS Chatbot", layout="centered")
|
| 12 |
-
|
| 13 |
# Chat History Initialization
|
| 14 |
if "messages" not in st.session_state:
|
| 15 |
st.session_state["messages"] = [{"role": "assistant", "content": "Hello! How can I assist you today?"}]
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from api_helper import call_api # Keep the original API logic
|
| 3 |
|
| 4 |
+
# Streamlit Configurations (must come first)
|
| 5 |
+
st.set_page_config(page_title="💬 DUBS Chatbot", layout="centered")
|
| 6 |
+
|
| 7 |
# Sidebar Configuration
|
| 8 |
with st.sidebar:
|
| 9 |
st.markdown("### DUBS Settings")
|
| 10 |
st.markdown("""[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)""")
|
| 11 |
st.markdown("""[](https://codespaces.new/streamlit/llm-examples?quickstart=1)""")
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
# Chat History Initialization
|
| 14 |
if "messages" not in st.session_state:
|
| 15 |
st.session_state["messages"] = [{"role": "assistant", "content": "Hello! How can I assist you today?"}]
|