Spaces:
Sleeping
Sleeping
tejoess
commited on
Commit
·
ca39bef
1
Parent(s):
368dfa9
Updated app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ if prompt := st.chat_input("What would you like to know?"):
|
|
| 77 |
st.session_state.messages.append({"role": "assistant", "content": error_msg})
|
| 78 |
|
| 79 |
# Sidebar with clear chat button
|
| 80 |
-
|
| 81 |
with st.sidebar:
|
| 82 |
st.header("Chat Controls")
|
| 83 |
if st.button("Clear Chat History"):
|
|
@@ -89,4 +89,3 @@ with st.sidebar:
|
|
| 89 |
st.markdown("1. Make sure you have your OpenAI API key in a `.env` file")
|
| 90 |
st.markdown("2. The format should be: `OPENAI_API_KEY=your_api_key_here`")
|
| 91 |
st.markdown("3. Install required packages: `pip install streamlit langchain-openai python-dotenv`")
|
| 92 |
-
"""
|
|
|
|
| 77 |
st.session_state.messages.append({"role": "assistant", "content": error_msg})
|
| 78 |
|
| 79 |
# Sidebar with clear chat button
|
| 80 |
+
|
| 81 |
with st.sidebar:
|
| 82 |
st.header("Chat Controls")
|
| 83 |
if st.button("Clear Chat History"):
|
|
|
|
| 89 |
st.markdown("1. Make sure you have your OpenAI API key in a `.env` file")
|
| 90 |
st.markdown("2. The format should be: `OPENAI_API_KEY=your_api_key_here`")
|
| 91 |
st.markdown("3. Install required packages: `pip install streamlit langchain-openai python-dotenv`")
|
|
|