abanm commited on
Commit
72d772c
·
verified ·
1 Parent(s): 9460bb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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("""[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](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("""[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](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?"}]