andriydovgal commited on
Commit
7752e9a
·
verified ·
1 Parent(s): bf2acac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -120,7 +120,7 @@ def process_user_input(text, thread_id, chat_history, storage):
120
  chat_history[-1][1] = "Your request contains some inappropriate information. We cannot proceed with it."
121
  yield [chat_history, storage]
122
  else:
123
- add_message_to_openai(initial_message, thread_id)
124
  for response in handle_events(thread_id, chat_history, storage):
125
  yield response
126
 
 
120
  chat_history[-1][1] = "Your request contains some inappropriate information. We cannot proceed with it."
121
  yield [chat_history, storage]
122
  else:
123
+ add_message_to_openai(text, thread_id)
124
  for response in handle_events(thread_id, chat_history, storage):
125
  yield response
126