Update app.py
Browse files
app.py
CHANGED
|
@@ -172,6 +172,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[],
|
|
| 172 |
token_counter += 1
|
| 173 |
# resembles {chatbot: chat, state: history}
|
| 174 |
yield chatbot, history
|
|
|
|
| 175 |
|
| 176 |
|
| 177 |
def delete_last_conversation(chatbot, history):
|
|
|
|
| 172 |
token_counter += 1
|
| 173 |
# resembles {chatbot: chat, state: history}
|
| 174 |
yield chatbot, history
|
| 175 |
+
print(f'answer is - {history[-1]}\n')
|
| 176 |
|
| 177 |
|
| 178 |
def delete_last_conversation(chatbot, history):
|