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

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. 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,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. 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)
 
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 have to always convert all the numerical figures in your generated response to text.", "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 have to always convert all the numerical figures in your generated response to text.", "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)