zlmqi commited on
Commit
377634a
1 Parent(s): 252481a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -108,7 +108,7 @@ class Chatbot:
108
 
109
  def create_bot(user_input):
110
  bot = Chatbot(os.getenv("OPENAI_API_KEY"), index=index)
111
- bot.load_chat_history();
112
 
113
  if user_input:
114
  # use moderations endpoint to check input
@@ -124,8 +124,8 @@ def create_bot(user_input):
124
  else:
125
  output = "Invalid request."
126
 
127
- bot.append_chat_history(user_input, output)
128
- bot.save_chat_history()
129
 
130
  return output
131
 
 
108
 
109
  def create_bot(user_input):
110
  bot = Chatbot(os.getenv("OPENAI_API_KEY"), index=index)
111
+ #bot.load_chat_history();
112
 
113
  if user_input:
114
  # use moderations endpoint to check input
 
124
  else:
125
  output = "Invalid request."
126
 
127
+ #bot.append_chat_history(user_input, output)
128
+ #bot.save_chat_history()
129
 
130
  return output
131