Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
5cbb476
1
Parent(s):
4f2c20c
Update app.py
Browse files
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 |
-
|
160 |
-
|
161 |
-
|
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):
|