Spaces:
Running
Running
new file
Browse files
app.py
CHANGED
@@ -8,6 +8,8 @@ import os
|
|
8 |
st.title("π¬ Chatbot")
|
9 |
st.caption("")
|
10 |
|
|
|
|
|
11 |
# Initialize session state for storing messages if it doesn't already exist
|
12 |
if "messages" not in st.session_state:
|
13 |
st.session_state["messages"] = [{"role": "assistant", "content": "How can I help you?"}]
|
|
|
8 |
st.title("π¬ Chatbot")
|
9 |
st.caption("")
|
10 |
|
11 |
+
|
12 |
+
openai_api_key = os.environ["OPENAI_API_KEY"]
|
13 |
# Initialize session state for storing messages if it doesn't already exist
|
14 |
if "messages" not in st.session_state:
|
15 |
st.session_state["messages"] = [{"role": "assistant", "content": "How can I help you?"}]
|