JohnSmith9982 commited on
Commit
5cbb476
1 Parent(s): 4f2c20c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -156,11 +156,9 @@ def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[],
156
 
157
 
158
  def delete_last_conversation(chatbot, history):
159
- if chat_counter > 0:
160
- chat_counter -= 1
161
- chatbot.pop()
162
- history.pop()
163
- history.pop()
164
  return chatbot, history
165
 
166
  def save_chat_history(filename, system, history, chatbot):
 
156
 
157
 
158
  def delete_last_conversation(chatbot, history):
159
+ chatbot.pop()
160
+ history.pop()
161
+ history.pop()
 
 
162
  return chatbot, history
163
 
164
  def save_chat_history(filename, system, history, chatbot):