mabrouk commited on
Commit
082cf0f
1 Parent(s): b09acd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -128,7 +128,7 @@ def generate_llm_response():
128
 
129
  if "messages" not in st.session_state.keys():
130
  st.session_state.messages = []
131
- initial_system = {"role": "system", "content": "You are a helpful assistant.", "audio":""}
132
  st.session_state.messages.append(initial_system)
133
  initial_message = {"role": "assistant", "content": "How may I assist you today?", "audio":""}
134
  st.session_state.messages.append(initial_message)
@@ -245,7 +245,7 @@ if st.session_state.messages[-1]["role"] != "assistant":
245
  def clear_chat_history():
246
  st.session_state.messages = []
247
  audio_list = []
248
- initial_system = {"role": "system", "content": "You are a helpful assistant.", "audio":""}
249
  st.session_state.messages.append(initial_system)
250
  initial_message = {"role": "assistant", "content": "How may I assist you today?", "audio":""}
251
  st.session_state.messages.append(initial_message)
 
128
 
129
  if "messages" not in st.session_state.keys():
130
  st.session_state.messages = []
131
+ initial_system = {"role": "system", "content": "You are a helpful assistant. You will always convert numbers to text when generating a response.", "audio":""}
132
  st.session_state.messages.append(initial_system)
133
  initial_message = {"role": "assistant", "content": "How may I assist you today?", "audio":""}
134
  st.session_state.messages.append(initial_message)
 
245
  def clear_chat_history():
246
  st.session_state.messages = []
247
  audio_list = []
248
+ initial_system = {"role": "system", "content": "You are a helpful assistant. You will always convert numbers to text when generating a response.", "audio":""}
249
  st.session_state.messages.append(initial_system)
250
  initial_message = {"role": "assistant", "content": "How may I assist you today?", "audio":""}
251
  st.session_state.messages.append(initial_message)