Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,7 @@ if "messages" not in st.session_state:
|
|
| 16 |
with open("conversation_history.json", "r") as file:
|
| 17 |
conversation_history = json.load(file)
|
| 18 |
st.session_state["messages"] = conversation_history["history"]
|
| 19 |
-
|
| 20 |
-
# Fallback to hardcoded history if file not found
|
| 21 |
-
st.session_state["messages"] = [
|
| 22 |
-
{"role": "assistant", "content": "How can I help you today?"}
|
| 23 |
-
]
|
| 24 |
|
| 25 |
# Input for new prompts
|
| 26 |
prompt = st.chat_input("Enter your question:")
|
|
|
|
| 16 |
with open("conversation_history.json", "r") as file:
|
| 17 |
conversation_history = json.load(file)
|
| 18 |
st.session_state["messages"] = conversation_history["history"]
|
| 19 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
# Input for new prompts
|
| 22 |
prompt = st.chat_input("Enter your question:")
|