Promotingai commited on
Commit
9be7406
·
verified ·
1 Parent(s): dd06cb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
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
- except FileNotFoundError:
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:")